//Simple program on for loop
#include<stdio.h>
#include<conio.h>
void main()
{
int I;
for(I=1;i<=10;i++)
printf("%d\n",i);
getch();
}
/*
output:
1
2
3
4
5
6
7
8
9
10
*/
You may like the following posts:
looping statements or repetative statements
for loop
while loop
do-while
No comments:
Post a Comment