1 page just loading


#1



Replace this line with your code.


#2

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


#3

help with this please the page just loading

# 1 ruby

#4

Did you enter a number at the input prompt?


#5

this is the code what should i do with it
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


#6

When you submit the exercise, it runs and there should be an input prompt waiting for input in the console. Type a number press Enter.


#7

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