Sunday, 11 December 2011

Write a program to print this Series with do while loop in c

#include
#include
main()
{
int i=1;
clrscr();
do
{
printf("%d\t",i);
i=i+2;
}
while(i<100);
getch();
}


OUTPUT

1 3 5 7 9 11 13 15 17 19 ………………. 99

No comments:

Post a Comment