why does my while loop never end?
puts 'Please enter a number:'
number = gets.chomp.to_i
while number != ''
if number > 0
puts 'You have entered a number greater than 0'
end
puts 'Please enter a number'
number = gets.chomp.to_i
end
puts 'Goodbye!'
--
Posted via http://www.ruby-forum.com/.