#include<stdio.h>
#include<conio.h>
void main()
{
int i,c,n; printf("Enter the number of terms you want which are divisible by 7");
scanf("%d",&n);
c=0;
for(i=7;;i+=7)
{
printf("\n %d ",i);
c++;
if(c==n)
break;
}
getch();
}
Chat with our AI personalities
There is an infinite number of numbers that are not divisible by seven!
Oh, what a lovely question! Let's see, we can find the numbers divisible by 3 first, which are 33 numbers, and the numbers divisible by 7, which are 14 numbers. But wait, some numbers are divisible by both 3 and 7, so we must be careful not to count them twice. In the end, there are 47 numbers between 1 and 100 that are divisible by 3 or 7. Happy counting!
Numbers that are divisible by both 6 and 7 must be divisible by the least common multiple of 6 and 7, which is 42. Therefore, the numbers divisible by both 6 and 7 are multiples of 42. This includes numbers like 42, 84, 126, and so on.
There are 22 such numbers.
NO, 837 is not divisible by 2. Because it ends in 7, and 7 is a odd number. Only numbers that are even numbers can be divisible by 2.