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

PROGRAMMING:3.11 - is the difference between two integers less than or equal to 10?

Luz5年前 (2021-05-10)题库350
Write a program, input two integers as follows, if their difference is less than or equal to 10, then "their difference is less than or equal to 10" will be displayed. Otherwise, "their difference is greater than or equal to 11" is displayed.
The operation of exercises 3-11 is as follows:
```
Please enter two integers.
Integer a: 12
Integer B: 7
The difference between them is less than or equal to 10.
```
###Input example:
Here is a set of inputs. For example:
```in
twelve
seven
```
###Output example:
The corresponding output is given here. For example:
```out
Please enter two integers.
Integer a: integer B: their difference is less than or equal to 10.
```







answer:If there is no answer, please comment