For loop count by twos, tens, and so on - C Statement

C examples for Statement:for

Description

For loop count by twos, tens, and so on

Demo Code

#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;
}

Result


Related Tutorials