Write a C++ Program to Display Number (Entered by the User).
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 |
What are the advantages/disadvantages of using #define?
What Is A Default Constructor in C++ ?
Explain function prototypes in C++.
Question on Copy constructor.
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
How to run C++ program in cmd
What are string library functions(syntax).
What is bool in C++
What is placement new?
How to convert integer to string in C++
Can we provide one default constructor for our class?
What is a virtual base class?