print 1 to 100 program in c

program:-


#include<stdio.h>
void main()
{
int i;

for(i=1;i<=100;i++)
{

printf("\n%d",i);

}
getch();
}

output:-
1
2
3
4
5
6
7
.
.
.
.
100

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post