Explore a little.C ProgrammingC++HTMLVisual BasicSystem AnalysisE-CommerceBCA Notes
LEARN SOMETHING NEW

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

Read4BCA learning libraryFree access

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

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

You can also see a video how to run this program

This lesson preserves the original Read4BCA material. Some programming examples use older tools and syntax. View original page.