Ads Top

TO REPEATEDLY EXECUTE A LINE

#include<iostream.h>
#include<conio.h>
void main()
{
int a=0;
clrscr();
loop:
cout<<"TECHNOSPACE"<<endl;
a++;
if(a<10)
goto loop;
getch();

}

OUTPUT
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE
TECHNOSPACE

No comments:

Touchfeeds. Powered by Blogger.