Okay then that’s pretty cool
Answer:
java: error
C: false
Explanation:
In Java the compiler understand that you are trying to compare an integer (15) with a boolean (10 > 5) this generate the next error:
error: bad operand types for binary operator
In C the compiler convert (15 > 10 > 5) in (15>10) > (10>5) which is equal to TRUE > TRUE, the compiler can also read it as 1 > 1 (since 1 is TRUE and 0 is FALSE). like 1>1 is false then C program return false.
Answer:
num1 = int(input("Enter value: "))
num2 = int(input("Enter value: "))
if num1 == num2:
print("Equals.")
else:
print("Unequal.")
Explanation: