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

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

0 Answers   Adobe,


How to delete array of objects in C++? Proof by C++ code for proper deletion

0 Answers  


Explain the FOR loop with a help of a code.

0 Answers   Accenture,


Difference between Call by pointer and by reference.

0 Answers   Adobe,


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,






Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


Explain function prototypes in C++.

0 Answers   Aricent,


What is an abstract class in C++

0 Answers   SwanSoft Technologies,


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

1 Answers  


What is a COPY CONSTRUCTOR and when is it called?

0 Answers   IBS,


Explain encapsulation in C++.

0 Answers   Verifone,


What is a class in C++?

0 Answers   Amazon, TCS, UGC Corporation,


Categories