WAP To Break A Loop At 10th Position When It is executed From 1 to 15


void main()
{
int i;
clrscr();
for(i=1; i<=15; i++)
{
if(i==10)
break;
printf("%d",i);
}
getch();
}

No comments:

Post a Comment