C examples for Statement:for
A counting loop using for statement
#include <stdio.h> int main(void) { const int NUMBER = 22; int count;/*from ww w.j a va 2 s. co m*/ for (count = 1; count <= NUMBER; count++) printf("from book2s . com!\n"); return 0; }