functional

functional

Not enough ratings
Divisible
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
506.000 B
6 Aug, 2021 @ 5:53am
1 Change Note ( view )

Subscribe to download
Divisible

Description
Write a function DIVISIBLE that takes two numerals X and Y and reduces to TRUE
if X is divisible by Y and FALSE otherwise.

Examples:
- DIVISIBLE 4 2 -> TRUE
- DIVISIBLE 7 3 -> FALSE

It is guaranteed Y is positive.
1 Comments
JW 30 Aug, 2021 @ 7:04am 
I think the test case #5 is wrong.
DIVISIBLE 0 9 should reduce to TRUE because zero is divisible by any number except by itself.