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

PROGRAMMING:1-6. Input integer, calculate and output subtraction result

Luz5年前 (2021-05-10)题库427
Write a program to read an integer like the one on the right and display the result of subtracting 6 from the integer【 The detailed operation process is as follows:]
```
Please enter an integer: 57 (enter)
The result of subtracting 6 from this integer is 51.
```
###Input format:
Enter an integer after the output prompt and press enter. For example: 57 (enter).
###Output format:
1. Output prompt information first and wait for user input. For example, please enter an integer:
2. Wait for user input
3. Output the integer minus 6. For example, the result of subtracting 6 from the integer is 51.
###Input example:
```in
57 [Enter]
```
###Output example:
```out
Please enter an integer: the result of subtracting 6 from the integer is 51.
```







answer:If there is no answer, please comment