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 class in C++?

1 Answers   Amazon, TCS, UGC Corporation,


Identify the error in the following program. #include<iostream.h> void main() { int i = 0; i = i + 1; cout « i « " "; /*comment *//i = i + 1; cout << i; }

1 Answers  


What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


What is a constructor initializer list?

0 Answers   Amazon,


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

0 Answers   Adobe,


Describe the different styles of function prototypes in C++.

0 Answers   Adobe,


How do you write a function that can reverse a linked-list in C++?

0 Answers   IBS,


Write a program that ask for user input from 5 to 9 then calculate the average

0 Answers   IBS,


Define type casting in C++.

0 Answers   Amdocs,


What is the purpose of a constructor? Destructor?

0 Answers   Amazon,


Tell me about virtual function

1 Answers  


Can we call C++ OOPS? and Why

0 Answers  


Categories