1 Answer
0
You can simply use % operator....
e.g.
puts "#{9 % 2}"
Output:
1
10th Apr 2020, 6:48 AM
DeWill

Often have questions like this?
Learn more efficiently, for free:
Hot today
Pointers cpp
3 Votes
Is pro worth the money ?
1 Votes
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes