Best collection of C programs
Tuesday, January 4, 2011
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