/***************************************************************
Statement - Print 1 to 10 using for loop
Programmer - Vineet Choudhary
Written For - http://developerinsider.co
Compiler - gcc
***************************************************************/
#include <stdio.h>
int main()
{
int i;
/* The loop goes while i < 10, and i increases by one every loop*/
for ( i = 0; i < 10; i++ ) {
printf( "%d\n", i );
}
}
/*
Output:
0
1
2
3
4
5
6
7
8
9
*/
Compilers -