+ 5
Ruby: How can the user define the variable?
For example my code which don't work: https://code.sololearn.com/cQbsNT9Uh1N3/?ref=app
3 Answers
+ 12
Use gets.to_i
E.g.
var = gets.to_i
+ 9
You are welcomed. đȘ
+ 7
Thanks
For example my code which don't work: https://code.sololearn.com/cQbsNT9Uh1N3/?ref=app