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

PROGRAMMING:Real number operation

Luz5年前 (2021-05-10)题库379
###Task description
This topic requires reading in two real numbers, and then output the sum and product of the two numbers respectively.
###Input format:
The input has only one line, and the two real numbers are separated by spaces.
###Output format:
Output two values in a row, separated by a space in the middle, and keep 3 decimal places for each value.
###Input example:
```in
3.14159 2.71828
```
###Output example:
```out
5.860 8.540
```
###Tips
When outputting real data, the%. 3lf format can be used to control the output of only 3 decimal places.







answer:If there is no answer, please comment