C program to print multiples of 15 from M to N
#include<stdio.h>
#include<conio.h>
void main()
{
int i, m,n, d ;
clrscr() ;
printf("Enter the range: ") ;
scanf("%d%d", &m,&n) ;
C program to print multiples of 15 from M tohe number : ") ;
scanf("%d", &d) ;
printf("\nThe multiples of given number %d are :\n\n", d) ;
for(i = m ; i <= n ; i++)
if(i % d == 0)
printf("%d\t", i) ;
getch() ;
}
No comments:
Post a Comment