Math, asked by Chpalagani16601, 10 months ago

Given 3 numbers a , b and c. Count the numbers divisible by c between a and b.

Answers

Answered by AnmolRaii
0

Step-by-step explanation:

A and B are two numbers which define a range, where A <= B. Find the total numbers in the given range [A … B] divisible by 'M'

Examples:

Input : A = 25, B = 100, M = 30

Output : 3

Explanation : In the given range [25 - 100],

30, 60 and 90 are divisible by 30

Input : A = 6, B = 15, M = 3

Output : 4

Explanation : In the given range [6 - 15],

6, 9, 12 and 15 are divisible by 3

Similar questions