Ask Question
8 November, 03:00

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.

+4
Answers (1)
  1. 8 November, 06:55
    0
    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))
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “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. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers