Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a C++ Program to Display Number (Entered by the User).



Write a C++ Program to Display Number (Entered by the User)...

Answer / hr

Solution:
/* C++ Program to Display Number (Entered by the User) */
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Enter an integer :: ";
cin >> number;
cout << "
The Number entered is :: " << number<<"
";
return 0;
}
Output:
/* C++ Program to Display Number (Entered by the User) */
Enter an integer :: 8
The Number entered is :: 8
Process returned 0

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

What is a COPY CONSTRUCTOR and when is it called?

0 Answers   IBS,


Explain why C++ is not purely Object Oriented Language

0 Answers   Aspire,


What are the advantages/disadvantages of using inline and const?

0 Answers   Amazon,


What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 Answers  


What are the advantages/disadvantages of using #define?

0 Answers   Amazon,


What are pass by value and pass by reference?what is the disadvantage of pass by value?

0 Answers   Alter,


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


When would you use a pointer? A reference?

0 Answers   Amazon,


Write a C++ Program to Reverse a Number using while loop.

1 Answers  


Discuss the role of C++ shorthands.

0 Answers   Adobe,


Categories