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
Explain the use of vtable.
What is the default width for ouputting a long integer using the insertion operator?
What is the c++ code?
What flag means?
What is the difference between procedural programming and oops?
Which type does string inherit from?
Can a function take variable length arguments, if yes, how?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What does no cap mean?
What are the data types in oop?
What are the sizes and ranges of the basic c++ data types?
What are oops functions?
Is c++ vector a linked list?
List the advantages of inheritance.
How do you clear a map in c++?