InterviewSolution
Saved Bookmarks
| 1. |
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 |
| Answer» LOWING codes have been WRITTEN USING PYTHON. | |