write a program to accept any number from the user and check i) the number is divisible by 6 without dividing by 6 and ii) the number is divisible by 5 without dividing by 5
Answers
Answered by
1
which implies that its remainder is zero. We then say that 15 is divisible by 3.
In our other lesson, we discussed the divisibility rules for 7, 11, and 12. This time, we will cover the divisibility rules or tests for 2, 3, 4, 5, 6, 9, and 10. Believe me, you will be able to learn them very quickly because you may not know that you already have a basic and intuitive understanding of it. For instance, bvious that all even numbers are divisible by 2. That is pretty much the divisibility rule for 2. The goal of this divisibility rules lesson is to formalize what you already know.
Similar questions