#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
int main( void )
{
int i;
for (i=0;i<=42;i++){
printf("i is : %i\n",i);
}
return 0;
}
output of for loop
i is : 0
i is : 1
i is : 2
i is : 3
and so on