[Solved] Why is this Ruby code asking for input in CPG ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

[Solved] Why is this Ruby code asking for input in CPG ?

# Update # The simple solution: I used "Gets" instead of "gets". This behaviour was still present at the time of the last post update. # Original post # I have made a Ruby code which should not ask for input but it is asking for input here on CPG. in ruby it does not ask for input. some help will be appreciated. Thanks in advance ^_^ https://code.sololearn.com/cIVJGYwUzH8P/?ref=app#rb

30th Sep 2017, 12:40 PM
Lord Krishna
Lord Krishna - avatar
4 Answers
+ 9
@Gordie, Baptiste Thanks for your answers i capitalized the g in Gets it stopped. i will mail this to them in a while.
30th Sep 2017, 1:34 PM
Lord Krishna
Lord Krishna - avatar
+ 7
yes thanks for the info. is there solution for this. the prompt is really annoying.
30th Sep 2017, 1:15 PM
Lord Krishna
Lord Krishna - avatar
+ 2
Home you'll get heard, even if I am not so optimistic ^^
30th Sep 2017, 1:41 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 1
You could write : g ets instead of gets
30th Sep 2017, 1:18 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar