Saturday, 10 December 2011

Write a program to print this Series :- 1 2 3 4 5 6 7 ………..20 in c

#include
#include
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