Problem Statement | |||||||||||||
You are to create a class Multiples with a method number, which takes three ints: min, max, and factor. Given a range of integers from min to max (inclusive), determine how many numbers within that range are evenly divisible by factor. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Notes | |||||||||||||
| - | If x is evenly divisble by y, there exists some integer k such that k * y = x. | ||||||||||||
Constraints | |||||||||||||
| - | min will be between -1000000 and 1000000, inclusive. | ||||||||||||
| - | max will be between -1000000 and 1000000, inclusive. | ||||||||||||
| - | max will be greater than or equal to min. | ||||||||||||
| - | factor will be between 1 and 1000, inclusive. | ||||||||||||
Examples | |||||||||||||
| 0) | |||||||||||||
| |||||||||||||
| 1) | |||||||||||||
| |||||||||||||
| 2) | |||||||||||||
| |||||||||||||
| 3) | |||||||||||||
| |||||||||||||