HOW TO REPEATEDLY EXECUTE A NUMBER
#include<iostream.h>
#include<conio.h>
void main()
{
int a=0,b=0;
clrscr();
loop:
cout<<"Enter the
number";
cin>>a;
if (a==5)
exit (0);
b++;
if(b==4)
cout<<"u must type
5, other wise you will not get stop this program";
clrscr();
goto loop;
getch();
}
OUTPUT:
Enter the number:
2
345
No comments: