May 20, 2023
Program to use for Loop in C Language
#include <stdio.h>
int main()
{
int i;
for (i = 1; i <= 10; i++)
{
printf("%d\t", i);
}
printf("\n");
return 0;
}
output
1 2 3 4 5 6 7 8 9 10
by : Nadeem Khan
Quick Summary:
The condition is checked even before the statements inside the for loop are statements inside the for loop are
executed and as long as the conditions remain true the statements inside the for loop keep on running