May 31, 2023
Program to use for loop in C Language
#include <stdio.h>
int main()
{
int i;
for (i = 1; i <= 5; i++)
{
printf("%d\t", i);
}
printf("\n");
return 0;
} .
output
1 2 3 4 5
by : Nadeem Khan
Quick Summary:
Program to use for loop in C Language copy #include <stdio.h> int main() { int i; for (i = 1; i <= 5; i++) { printf(“%d\t”, i); } printf(“\n”); return 0; } . output 1 2 3 4 5