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
Is c++ used anymore?
What is #include iostream?
What does it mean to declare a member variable as static?
What is pass by value & reference.
When is the copy constructor called?
what is the sylabus for priliminaries?
Why do we use classes in c++?
What is the difference between structure and class?
What is expression parser in c++
What is namespace & why it is used in c++?
Are strings mutable in c++?
How many human genes are polymorphic?
What is capacity in vector in c++?
What are the four main data types?
Explain what are mutator methods in c++?