#!/usr/bin/ruby x = 1 if x > 2 puts "x is greater than 2" elsif x <= 2 and x!=0 puts "x is 1" else puts "I can't guess the number" end
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more