Best collection of C programs
Showing posts with label
WAP TO PRINT SERIES FROM 1 TO 10 AND SKIP 5 and 7
.
Show all posts
Showing posts with label
WAP TO PRINT SERIES FROM 1 TO 10 AND SKIP 5 and 7
.
Show all posts
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 ();
}
Older Posts
Home
Subscribe to:
Posts (Atom)