16,24,32,40,48,56,64,72,80,88,96
Four. 24 and its multiples.
100
Since 100/4 = 25, there are 25 numbers between 0 and 100 divisible by 4.
370
16,24,32,40,48,56,64,72,80,88,96
17, 34, 51, 68, 85
Four. 24 and its multiples.
There are 166 multiples of 6 in that range. There are 100 multiples of 10 in that range. There are 33 numbers on both lists. 266 - 33 = 233
There are 99 numbers between 0 and 100.
100
10, 20, 30, 40, 50, 60, 70, 80, 90, 100
There are four: 6, 12, 18, 24.
49 if you don't include 0 and 100. 51 if you include 0 and 100.
There are a total of 14 numbers between 0 & 100 that are divisible by 7.
#include<stdio.h> #include<conio.h> void main() { int i, a[100]; clrscr(); printf("Numbers from 1 to 100"); for(i=1;i<=100;i++) printf(" %d",a[i]); printf("Numbers from 1 to 100 without multiples of 2"); for(i=1;i<=100;i++) { if (a[i]%2 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 3"); for(i=1;i<=100;i++) { if (a[i]%3 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 4"); for(i=1;i<=100;i++) { if (a[i]%4 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 5"); for(i=1;i<=100;i++) { if (a[i]%5 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 6"); for(i=1;i<=100;i++) { if (a[i]%6 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 7"); for(i=1;i<=100;i++) { if (a[i]%7 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 8"); for(i=1;i<=100;i++) { if (a[i]%8 !=0) printf(" %d",a[i]); } printf("Numbers from 1 to 100 without multiples of 9"); for(i=1;i<=100;i++) { if (a[i]%9 !=0) printf(" %d",a[i]); } getch(); }
Since 100/4 = 25, there are 25 numbers between 0 and 100 divisible by 4.