PDA

View Full Version : Stuck on IF and While!


envirocbr
November 15th, 2006, 03:54 PM
Here is the code I am trying to write for the Grandma Program...any help is appreciated

#This is the Grandma program

puts 'What do you want to say to Grandma?'
text = gets.chomp

while text == text.upcase
puts 'Maybe back in 1950'
text = gets.chomp
end

while text == text.downcase
puts 'What did you say?'
text = gets.chomp
end

if text == 'bye'
puts 'See ya later'
end

rob
November 24th, 2006, 05:00 AM
What problem are you running into?