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

PROGRAMMING:2-1. Calculate and output the percentage of integer x to integer y

Luz5年前 (2021-05-10)题库356
Write a program to read two integers as follows, and then show what percentage of the former is the latter.
```
Please enter two integers.
Integer x: 54 (carriage return)
Integer Y: 84 (enter)
The value of X is 64% of Y.
```
###Input format:
Enter an integer at the prompt and press enter. For example:
54 (enter)
84 (enter)
###Output format:
See the stem example.
###Input example:
```in
fifty-four
eighty-four
```
###Output example:
```out
Please enter two integers.
Integer x: the value of integer Y: X is 64% of Y.
```







answer:If there is no answer, please comment