C examples for Statement:for
For loop count by twos, tens, and so on
#include <stdio.h> int main(void) { int n; // count by 13s from 2 /*ww w . ja v a2 s .com*/ for (n = 2; n < 60; n = n + 13) printf("%d \n", n); return 0; }