Write a program to print the multiples of 5 from 1-50 in C

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

printf("\n\nPrinting the multiples of 5 from 1-50");

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

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

getch();
}

Previous
Next Post »