53. C Program To find Numbers Divisible By 3 and 7 between 1 to 100 Numbers.
How does this program work?
- This Program is used to find the numbers which are divisible by 3 and 7 between 100 numbers.
Here is the code
#include <stdio.h>
int main(void)
{
int i;
for(i = 1; i <= 100; i++)
{
// Condition to check division of 3 and 7
if((i%3) == 0 && (i%7)==0)
{
printf("%d\n", i);
}
}
return 0;
}