num1=float(raw_input("enter the number1:")) num2=float(raw_input("enter the number2:")) if num1 < num2: print num1,"is less than",num2 if num1 > num2: print num1,"is greater than",num2 if num1 == num2: print num1,"is equal to",num2 if num1 != num2: print num1,"is not equal to",num2
result
时间: 2024-10-31 22:15:17