Give Ruby an integer—that is, a positive or negative number with no decimal bit.)


Need help in Control Flow 1/17 can some body help? Please.

print "Integer please: "
user_num = Integer(gets.chomp)

if user_num < 0
  puts "You picked a negative integer!"
elsif user_num > 0
  puts "You picked a positive integer!"
  puts "You picked zero!"


what exactly do you need help with


@textrunner53392 I don’t know how to solve this


But what is this?

What’s stopping you? What’s the expected outcome? What happens instead?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.