Multiple in interval

Write a function @multiple_in_interval(a,b,x)@ that given three integers
a, b, and x, returns True if the interval [a, b] contains a number that
is multiple of x, and False otherwise.

We are guaranteed that all three numbers a, b, and x will be strictly
greater than zero.

Sample session

Observations

If you want to test your program locally, remember to include the
following lines at the end of the file:

    if __name__ == "__main__":
       import doctest
       doctest.testmod(verbose=True)

Problem information

Author: ProAl

Generation: 2026-01-25T15:26:14.750Z

© Jutge.org, 2006–2026.
https://jutge.org
