10 lines
101 B
Ruby
10 lines
101 B
Ruby
|
|
def div_check(x, y)
|
||
|
|
begin
|
||
|
|
x / y
|
||
|
|
rescue ZeroDivisionError
|
||
|
|
true
|
||
|
|
else
|
||
|
|
false
|
||
|
|
end
|
||
|
|
end
|