Saturday, 10 December 2011

a program to print this Series :-1 3 5 7 9………….20 in c

#include
#include
main()
{
int i;
clrscr();
for(i=1;i<=20;i=i+2)
printf("\n %d",i);
getch();
}

OUTPUT
1 3 5 7 9 ………19

No comments:

Post a Comment