84. C Program to Print Multiples of a given number from 0 to 200.
How does this program work?
- This Program is used to print Multiples of a given number from 0 to 200.
Here is the code
#include <stdio.h>
int main(void)
{
int i, n=200, s ;
// Enter a number for display its multiples
printf("Enter the number : \n") ;
scanf("%d", &s) ;
printf("\nThe numbers Multiples of %d are :\n\n", s) ;
for(i = 1 ; i <= n ; i++)
if(i % s == 0)
printf("%d\t", i) ;
return 0;
}