Important Questions

C++ Program to print the number entered by the user

//C++ Program to print the number entered by the user
//header files
#include<iostream.h>
#include<conio.h>

void main()
{

clrscr();
int number;
cout<<"Enter an integer:";
cin>>number;        //getting the number entered by user
cout<<"You entered:"<<number;
getch();

}

Output


You can also see a video how to run this program