Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function called checkFactor that takes in two numbers and checks if they are divisible, that is, if the first is divisible by the
-
Write a function called checkFactor that takes in two numbers and checks if they are divisible, that is, if the first is divisible by the sec- ond. You may assume that both numbers are positive. You function should return a logical value , true or false.
For example checkFactor(25,6) should return false checkFactor(9,3) should return true checkFactor(3,9) should return false
Hint: mod(m,n) is the remainder of m n.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started