Store a Comparison in a boolean
Easyjava
Read two integers. Store the result of "is the first greater than the second?" in a boolean variable and print it.
Input: two integers separated by whitespace.
Output: one line — true or false.
Example 1
Input
7 3
Output
true
Example 2
Input
3 7
Output
false
- -1000000000 <= a, b <= 1000000000
Hint 1
The expression a > b already has type boolean.
Hint 2
boolean firstIsGreater = a > b; then print it.
A comparison like a > b evaluates to a boolean, which you can keep in a boolean variable and print directly. Equal values give false because "greater than" is strict.