Write a program to print the multiples of 7 from 1- 100 in C

//this is a program to print the multiples of 7 from 1- 100
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;

printf("\n\nPrinting the multiples of 7 from 1-100 ");

do{
if(i%7==0)
printf("\n %d",i);

i++;
}while(i<=100);

getch();

}

Previous
Next Post »