Search (Article Or Program)

18 June 2011

For Loop Print program (in c)

#include //header files stdio.h and conio.h//
#include
main()
{
int i,n;
scanf("%d",&n);
for(i=1;i<=n;i=i+1)
{
printf("%d\n",i);
}
getch();
}