#include"iostream.h" // input output stream
#include"conio.h" // console input output
void main()
{
int n;
char c;
do
{
cout<<"\n\nEnter a number"; // cout is used to print something on screen
cin>>n;
cout<<"You entered :: "<
c=getch();
}
while(c=='1');
getch();
}
In the above program , user enters a number and the program prints the entered value on screen , then the program asks whether user want to enter more values or not , if user enters 1 , he is again asked to enter a new value else loop exists...