Answers for "arithmetic in ruby"

0

ruby basic arithmetic

# Some basic arithmetic
1 + 1 #=> 2
8 - 1 #=> 7
10 * 2 #=> 20
35 / 5 #=> 7
2 ** 5 #=> 32
Posted by: Guest on January-07-2021

Browse Popular Code Answers by Language