donovanfiler7361 donovanfiler7361
  • 19-03-2020
  • Computers and Technology
contestada

Write a method is_divisible that takes two integers, m and n. The method returns True if m is divisible by n, and returns False otherwise. Test cases for this function to verify it functions correctly.

Respuesta :

abdullahfarooqi
abdullahfarooqi abdullahfarooqi
  • 22-03-2020

Answer:

def is_divisible(m,n):

   if(m%n==0):

          return True

   else:

          return False

m=int(input("Enter m:"))

n=int(input("Enter n:"))

print(is_divisible(m,n))

Explanation:

Answer Link

Otras preguntas

If a man travels p hours at an average rate of q miles per hour, and then r hours at an average rate of s miles per hour, what is his overall average rate of sp
If t is any real number, prove that 1+(tant)^2=(sect)^2
the first number in a multiplication problem is called the
Which structure allows photosynthesis to begin in a germinating dicot plant? A. Cotyledon B. Endosperm C. Embryonic root D. Apical meristem E. Lateral meristem
What is the alpha decay of Radon-198?
What is it called when you don't eat meat except fish/seafood
How do you respond to que te gusta hacer en la escuela?
What three things happen in order for a chemical reaction to occur?
How does technology affect the unemployment rate?
Describe the direct effects that volcanoes can have on the surrounding area.