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

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 ();

}



Labels