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

Is c++ the hardest language?

750


What is a singleton class c++?

767


What are the characteristics of friend functions?

770


Why do we use templates?

804


In what scenario does the Logical file and Physical file being used?

2547


How do you convert stl to steps?

853


What are c++ files?

888


What new()is different from malloc()?

821


What is searching?

868


What are the advantages and disadvantages of B-star trees over Binary trees?

757


Differentiate between a pointer and a reference with respect to c++.

954


Explain how an exception handler is defined and invoked in a Program.

865


What is abstract keyword in c++?

823


Show the declaration for a static function pointer.

800


What is searching? Explain linear and binary search.

792