Simplest for loop: user control the loop
#include <stdio.h> main() { int i,n; scanf("%d",&n); for(i = 0; i < n; i = i+1) { printf("the numbers are %d \n",i); } }