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 ww  .  j a va  2  s.  c o m
{
    int i;

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

Result

Related Exercise