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
When must you use a constructor initializer list?
What is the use of lambda in c++?
Why c++ is not a pure oop language?
Can a program run without main?
What it is and how it might be called (2 methods).
What is a c++ vector?
What are objects in oop?
Why is there no multiple inheritance?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What are structures and unions?
What is the difference between public, private, and protected access?
How can you specify a class in C++?
program explaining feautures of c++
What is polymorphism and why is it important?
Can recursive program be written in C++?