free c programming course
Tuesday, 28 August 2007
SERIES BREAK ON 5
WAP to print series from 1 to 10 and break on 5
void main ()
{
int a;
clrscr ();
for (a=1;a<=10;a++)
{
if (a==5)
break;
printf ("%d\n",a);
}
getch ();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment