linkinprkfan13
Programmer
I was doing the exersize in chris pine's tutoriouls for chapter 6 and he asks to do a granny senario, i wrote this code but i cant figure out why it wont work.
puts 'Well hello, sonny!!!'
say = gets.chomp
while say != 'say.upcase'
puts 'HUH?!? WHAT DID YOU SAY SONNY?!?!'
if say == say.upcase
puts 'NOT SINCE 1934!!'
if say == 'BYE'
puts 'CYA!'
puts 'Well hello, sonny!!!'
say = gets.chomp
while say != 'say.upcase'
puts 'HUH?!? WHAT DID YOU SAY SONNY?!?!'
if say == say.upcase
puts 'NOT SINCE 1934!!'
if say == 'BYE'
puts 'CYA!'