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 function overloading and operator overloading in C++?

0 Answers   IBS, TCS,


Explain the importance of method overloading in C++?

0 Answers   Akamai Technologies, Infogain,


Write a C++ Program to find Addition of Two Numbers.

1 Answers  


Tell How To Check Whether A Linked List Is Circular ?

1 Answers   IBS, Infosys,


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,






Difference between function overloading and function overriding.

0 Answers   Alter,


What Is Polymorphism in C++ ?

1 Answers   IBS, Impetus, ITC Indian Tobacco Company, Motorola,


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

0 Answers  


What is the difference between public, private, and protected inheritance?

0 Answers   Amazon,


What are the fundamental features of an object-oriented language?

0 Answers   Accenture,


What is the difference between realloc() and free() in C++?

0 Answers   IBS, TCS,


Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?

0 Answers   Adobe,


Categories