Given three integers
\(a\),
\(b\) and
\(c\)
Write a program that counts all integers from
\(a \) to
\(b\) which, when divided by integer
\(c\) , will give a remainder greater than 4
Input:
The first line contains three integers
\(a\),
\(b\) and
\(c\) (
\(a <= b\), a,b no greater than 100 by modulo, 0<=c<=9)
Output:
The program should print a single number - the number of all integers from a to b, which, when divided by integer by
c, will give a remainder greater than 4
Examples
# |
Input |
Output |
1 |
1 10 9 |
4 |