Question: countDivisibleBy ( 9 , 1 3 ) will return 1 8 because there are 1 8 numbers between 1 and 1 0 0 that are

countDivisibleBy(9,13) will return 18 because there are 18 numbers between 1 and 100 that are evenly divisible by either 9 or 13. countDivisibleBy(3,5) will return 47 because there are 47 numbers between 1 and 100 that are evenly divisible by either 3 or 5. countDivisibleBy(10,20) will return 10 because there are no numbers between 1 and 100 that are evenly divisible by either 10 or 20.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!