#!/usr/local/bin/ruby

x = [2,1,3,4,-2]
y = [2,1,3,4,-2,0]
if x[1] <= y[1] 
printf("true\n")
else
printf("false\n")
end

printf("result is %d\n", x <=> y)
Published in: Ruby
Download

Related snippets