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

Ratio as fractions 45min to 1-1/4 hour
can somebody help me solve for y
Tyler earned $68 for babysitting 8 hours. if tyler is paid the same rate, how much will he earn for babysitting 12 hours?
Mary anticipates coming into contact with the blood and body fluids of a patient. To protect herself and others from potential infectious diseases, she must wea
Draw the graph of the function f(x) = 2 * ⌈x⌉ for the domain -2 < x < 1 .
If Henry bottle flipped 30 time in 2 minutes how mant times would he bottle flip in 6 hours?
divide 180 degrees in a ratio of 4:5:9
63 is 90% of what number? In number line
Hay oscuridad en marte
why should household products be stored in their original containers? plsssss