Displaying ./code/sternflCode/p10.c#include<stdio.h>
//count the number of numbers 1-100 that are divisible by 5 or by 3
int main() {
int count=0;
for(int i=1; i<=100; i++)
if (i%5==0 || i%3==0)
count++;
printf("number of numbers between 1 and 100 divisible by 5 or3 is %d\n",count);
}
|