C - Write program to output starts at the number 3 and displays multiples of 3 all the way up to 100

Requirements

Write program to output starts at the number 3 and displays multiples of 3 all the way up to 100

Demo

#include <stdio.h>

int main()/* w w  w . j a v a  2s  .  co  m*/
{
    int i;

    for(i=3;i<=100;i=i+3)
    {
        printf("%d\t",i);
    }
    putchar('\n');
    return(0);
}

Result

Related Exercise