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

PROGRAMMING:Calculate payment for goods

Luz5年前 (2021-05-10)题库395
Two decimal places are reserved after the decimal point of the output data result
#include
cout << setiosflags(ios::fixed) << setprecision(2) ;
###Input format:
The number, number and unit price of sales one
The number, number and unit price of sales 2
Number, number and unit price of sales 3
###Output format:
Total sales
Average actual price per item
###Input example:
```in
101 5 23.5
102 12 24.56
103 100 21.5
```
###Output example:
```out
two thousand three hundred and eighty-seven point six six
twenty point four one
```







answer:If there is no answer, please comment