Answer:
a) 4562
b) (a != b) || (a != c) || (b != c)
(a != b) && (a != c) && (b != c)
!((a == b) && (b == c) && (a == c))
Step-by-step explanation:
a) The user input of 45 and 62 are received as a String (n1 and n2). Then result concatenate the value of 45 and 62 which is 4562. Result variable uses the concatenate operator '+'.
b)
(a != b) && (a != c) && (b != c) is correct as each of the individual condition must be true before it evaluate to true. Meaning a is not equals to b and a is not equals to c and b is not equals to c.
(a != b) || (a != c) || (b != c) is correct because it evaluate to true if at least one of the condition is satisfied.
!((a == b) && (b == c) && (a == c)) is correct because each individual condition is false and the logical combination of false and false and false equals false, then the negation of false is true