0

Could this code be simplified..?

A=5 B=2 C=A/B D=A%B puts "5:2 is #{C} with remainder #{D}"

14th Feb 2019, 10:44 AM
Rhangin
2 odpowiedzi
+ 1
Yep! A = 5 B = 2 puts "5/2 is #{A/B} with remainder #{A%B}"
14th Feb 2019, 11:12 AM
Seniru
Seniru - avatar
0
Thanks..
16th Feb 2019, 12:50 AM
Rhangin