fork download
  1. x = gets.to_i
  2. case x
  3. when x > 0
  4. puts "1"
  5. when x = 0
  6. puts "0"
  7. when x < 0
  8. puts "-1"
  9. end
  10.  
  11.  
  12.  
  13.  
  14.  
  15. # your code goes here
Success #stdin #stdout 0.01s 6252KB
stdin
Standard input is empty
stdout
0