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).

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How is modularity introduced in C++?

1205


Can non graphic characters be used and processed in C++?

1193


Why is c++ difficult?

1033


Which one between if-else and switch is more efficient?

1063


What is command line arguments in C++? What are its uses? Where we have to use this?

1266


Is swift better than c++?

942


How a new element can be added or pushed in a stack?

1017


What is the basic concept of c++?

1007


What are abstract data types in c++?

980


What is the difference between C and CPP?

1154


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1624


What is polymorphism and why is it important?

1037


What is the difference between prefix and postfix versions of operator++()?

1079


How will you execute a stack using a priority queue? (Push and pop should be in O (1)).

1084


Define a constructor - what it is and how it might be called (2 methods)?

1127