Define Macro and use it as the loop condition
#include <stdio.h> #define MAX 100 int main(void) { int i; for( i = 0; i < MAX; i++) printf("%d ", i); return 0; }