print "Enter a number to check to see if it a multiple of 2,3,4 or 5 : " domain = gets.chomp.to_i case when ((domain % 2) == 0) && ((domain % 4) != 0) puts "The number entered is a multiple of 2" when (domain % 3) == 0 puts "The number entered is a multiple of 3" when (domain % 4) == 0 puts "The number entered is a multiple of 4" when (domain % 5) == 0 puts "The number entered is a multiple of 5" else puts "The number is not a multiple of 2,3,4 or 5" end