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
What is a class in oop?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Discuss the role of C++ shorthands.
Is c++ map a hash table?
What is a class template in c++?
What is java and c++?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
Why are arrays usually processed with for loop?
Is c++ vector dynamic?
What is the meaning of the following declaration: int *const *const *i?
What is abstraction with real time example?
What does it mean to declare a member variable as static?
Are php strings immutable?
What c++ library is string in?
Differentiate between C and C++.