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


#1

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!"
else
  puts "You picked zero!"
end 


#2

what exactly do you need help with


#3

@textrunner53392 I don’t know how to solve this


#4

But what is this?

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


#5

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