Simple example for C 2

Simple example

#include <iostream.h>
#include <conio.h>
void main( )
{
int num;
clrscr();
cout<<”Enter an integer number \n”;
cin>>num;
cout<<”You have entered :”<<num<<”\n”;
getch();
}
Output :
Enter an integer number
10
You have entered : 10

0 comments: