C examples for Statement:for
For loop is used to print the numbers 1 through 100 on the screen
#include <stdio.h> int main(void) { int x;/* w w w. j a v a2s.co m*/ for (x = 1; x <= 100; x++) printf("%d ", x); return 0; }