I have code below and when run it the result is wrong. I tested with 9 or 6 or 3 it give the wrong phrase (NOT divisible), please help me to check.
print "Input number to test divisible by three: "
number = gets.chomp
if number % 3 == 0
print "this number is divisible by three"
print "this number is NOT divisible by three"