Im new to programming in general an new to ruby as well. So please
my trivial question.
I’m working through a tutorial and encountered a problem with the
Heres the code:
while answer !="".upcase
puts “WAS ICH KANN DICH NICHT HOEREN!”
answer = gets.chomp
puts “Nicht seit 1938”
What I want the program to do is to answer every input which is not
written upcase (for example: RUHE) with the line: WAS ICH KANN DICH
If the input (any input) is done upcase the answer shall be:
“Nicht seit 1909”
i guess the problem lies somewhere in line 2 --> ="".upcase , but I dont
know how to define that otherwise.
As I see it at the moment line to is saying
while answer IS NOT any upcase input
Am I wrong ?
Would be glad if someone could help, thanks