Pages

Saturday, 19 May 2012

Write a program to print this Series


42./*Write a program to print this Series :-
                      1 2 3 4 5 6 7 ………..20

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

OUTPUT
            1 2 3 4 5 6 7…….20

No comments:

Post a Comment