+ 9

what's wrong with this code ?

Can anyone tell me what's wrong with this code ? please give me an explanation. https://code.sololearn.com/cSqwZM20gsu4/?ref=app

11th Aug 2019, 5:19 PM
sujay simha
sujay simha - avatar
2 Antworten
+ 4
o = gets.chomp # Removes the new line "\n" at the end a = gets.to_i # Converts it to an integer b = gets.to_i Don't forget to handle division by zero.
11th Aug 2019, 5:42 PM
Diego
Diego - avatar
+ 9
thank you so much Diego, it worked !!
11th Aug 2019, 5:46 PM
sujay simha
sujay simha - avatar