Printing something at the end of a gets input in ruby

前端 未结 0 1616
情话喂你
情话喂你 2020-12-05 00:43

In Ruby, how can add something that displays at the end of a user\'s gets input on the same line?

Something like this:

puts "What is          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题