Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Integer-comparison/Ruby/integer-comparison-2.rb
Normal file
8
Task/Integer-comparison/Ruby/integer-comparison-2.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
a = (print "enter a value for a: "; gets).to_i
|
||||
b = (print "enter a value for b: "; gets).to_i
|
||||
|
||||
case a <=> b
|
||||
when -1; puts "#{a} is less than #{b}"
|
||||
when 0; puts "#{a} is equal to #{b}"
|
||||
when +1; puts "#{a} is greater than #{b}"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue