[Solved] Gets.chomp not working


You are supposed to enter values, not just press enter, when prompted after running the program:

# ⇓   prompt ⇓   ⇓⇓ YOUR INPUT!!! 
How old are you? 35

Sidenote: parentheses after chomp are redundant and not ruby idiomatic.

0

solved Gets.chomp not working