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

Which paragraph provides the best evidence to support the idea that Mother Jones did not trust the governor? O A O B. O C. O D. paragraph 2 paragraph 18 paragra
Solve for x -3(x-6)=63 question 2 options: 15 -15 27 -27
Number theory algebra 2
Convert 74° N of W to the counter-clockwise from east convention.
Sodium chloride (nacl) is the chemical name for table salt and potassium chloride (kcl) is a common salt substitute. Using the periodic table, choose the correc
What is the most likely central idea of an informational text titled "The Downsides to Gummy Vitamins?
< An inequality is shown. -2x+12<18 What is the solution to the inequality? 0x<3 x>3
The repetition of beginning sounds in words is
Overall, what message is the author conveying through humor and satire in this text? Cite evidence in your answer.
sale price is 16.80 with 30% disocount I need work for it