Pages

Sunday 20 May 2012

program to print this Series


87./*Write a program to print this Series*/

#include<stdio.h>
#include<conio.h>
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