Use integer as the for loop controller
#include <stdio.h> int main(void) { int i; for(i = 1; i < 101; i = i + 1) printf("%d ", i); return 0; }