WAp that takes an integer and tests whether it is divisible by 2, 4 and 5. Apply divisibility rules that say:
a. a number is divisible by 2 if the number is ending in an even digit 0,2,4,6,8.
b. a number is divisible by 4 if last 2 digits of the number are divisible by 4.
c. a number is divisible by 5 if the number is ending in 0 or 5
Answers
Answered by
32
The following codes have been written using Python.
Equestriadash:
Thanks for the Brainliest! ^_^"
Similar questions