ODD SERIES 20 TO 1

WAP to print Even & Odd numbers from 20 to 1

void main ()

{

int a;

clrscr ();

a=20;

while (a>=1)

{

if (a%2==0)

printf ("%d\t",a);

else

printf ("%d\n",a);

a--;

}

getch ();

}

Labels