Write a program that reads three positive integers a, b, n and outputs the count of numbers divisible by n in the range from a to b (a < b) inclusively.
Note: it is possible to write this program more efficiently without any loops.
Write a program that reads three positive integers a, b, n and outputs the count of numbers divisible by n in the range from a to b (a < b) inclusively.
Note: it is possible to write this program more efficiently without any loops.
Sample Input 1:
10 20 10Sample Output 1:
2Sample Input 2:
15 25 5Sample Output 2:
3Create a free account to access the full topic