-->
当前位置:首页 > 题库

PROGRAMMING:3-4. Compare two integer values and output the size result

Luz5年前 (2021-05-10)题库470
Write a program to enter two integers as follows,
*If the two values are equal, a and B are equal
*If a is greater than B, "a is greater than B" is displayed
*If a is less than B, "a is less than B" is displayed
```
Please enter two integers.
Integer a: 54 (enter)
Integer B: 12 (enter)
A is greater than B.
```
###Input example:
When prompted, enter an integer and press enter. For example:
```in
fifty-four
twelve
```
###Output example:
Output prompt information and result. For example:
```out
Please enter two integers.
Integer a: integer B: A is greater than B.
```







answer:If there is no answer, please comment