+ 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
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.
+ 9
thank you so much Diego, it worked !!