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


Please Help Members By Posting Answers For Below Questions

Explain the use of vtable.

621


What is the default width for ouputting a long integer using the insertion operator?

693


What is the c++ code?

570


What flag means?

527


What is the difference between procedural programming and oops?

559






Which type does string inherit from?

618


Can a function take variable length arguments, if yes, how?

570


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?

562


What does no cap mean?

592


What are the data types in oop?

608


What are the sizes and ranges of the basic c++ data types?

589


What are oops functions?

586


Is c++ vector a linked list?

552


List the advantages of inheritance.

645


How do you clear a map in c++?

572