puts("10000" + 0)
I can't do this.
Therefore, the "to_s" method is used.
puts("10000" + 0.to_s)
Now you can display the numbers in the string together.
Recommended Posts