How many integer bw 1 and 566 are.Divisible by either 3 or 5?
Answers
Answered by
0
For a number to be divisible by 3 and 5, it should be divisible by LCM(3,5) = 15.
There are 20 such numbers between 1 and 300 (300/15 = 20).
Also, for a number to be divisible by 3, 5 and 7, it should be divisible by LCM(3,5,6)=105.
There are 2 such numbers between 1 and 300 (105 and 210).
So the toltal number of integers between 1 and 300 (both inclusive) that are divisible by 3 and 5 and not by 7 is 18.
hope you understand..
plz mark as brainlist..
There are 20 such numbers between 1 and 300 (300/15 = 20).
Also, for a number to be divisible by 3, 5 and 7, it should be divisible by LCM(3,5,6)=105.
There are 2 such numbers between 1 and 300 (105 and 210).
So the toltal number of integers between 1 and 300 (both inclusive) that are divisible by 3 and 5 and not by 7 is 18.
hope you understand..
plz mark as brainlist..
Answered by
0
Answer:
hello friend, your answer is here:
ans:264
Step-by-step explanation:
#include<iostream>
using namespace std;
int main()
{
int num=0,i;
for(i=1;i<566;i++)
{
if(i%3==0 || i%5==0)
{
num++;
}
}
cout<<num;
}
humayunkobirice:
please mark it as brainliest
Similar questions