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

PROGRAMMING:JMU Python exchange rate

Luz5年前 (2021-05-10)题库447
According to the exchange rate of 1 US dollar = 6 RMB, write a two-way exchange program between us dollar and RMB
###Input format:
Enter the amount in RMB or US dollar, in the form of RMB (R100) and US dollar (100)
###Output format:
Output the amount of US dollar or RMB calculated by exchange rate. The format is the same as the input. The currency comes first and the amount comes last. The result retains two decimal places
###Input sample 1:
```in
R60
```
###Output sample 1:
```out
$10.00
```
###Input sample 2:
```in
$5
```
###Output sample 2:
```out
R30.00
```






answer:If there is no answer, please comment