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

Explain why C++ is not purely Object Oriented Language

0 Answers   Aspire,


In C++ what is the meaning of data hiding?

0 Answers   Aricent,


What is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,


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

0 Answers   Adobe,


In C++ what do you mean by Inheritance?

0 Answers   Accenture,


What is the purpose of a constructor? Destructor?

0 Answers   Amazon,


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

0 Answers   Amazon,


How will you print a list of all unique words from a string which may contain repeated words?

0 Answers   Adobe,


What is the difference between virtual functions and pure virtual functions?

1 Answers  


What does it mean to take the address of a reference?

0 Answers   Amazon,


There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?

0 Answers   Alter,


Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


Categories