Best collection of C programs
Tuesday, January 4, 2011
SKIP 5 & 7
WAP TO PRINT SERIES FROM 1 TO 10 AND SKIP 5 & 7
void main ()
{
int a;
clrscr ();
for (a=1;a<=10;a++)
{
if (a==5 || a==7)
continue;
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