C++ Program to Print Number Entered by User

0
19

C++ Program to Print Number Entered by User

Program:

#include <iostream>
using namespace std;

int main()
{
int number;

cout << “Enter an integer number: “;
cin >> number;

cout << “You entered ” << number;
return 0;
}

OutPut:

Enter an integer: 45
You entered 45

LEAVE A REPLY

Please enter your comment!
Please enter your name here