Ask Question

Write a short java method, ismultiple, that takes two long values, n and m, and returns true if and only if n is a multiple of m, that is, n = mi for some integer i.

+3
Answers (1)
  1. 30 October, 19:10
    0
    Public boolean ismultiple (long n, long n)

    {

    return (n % m = = 0);

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a short java method, ismultiple, that takes two long values, n and m, and returns true if and only if n is a multiple of m, that is, ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers