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

PROGRAMMING:Decimal conversion

Luz5年前 (2021-05-10)题库536
Programming to achieve the following functions: input a positive decimal pure decimal and a decimal integer n (n < 10), and then convert the decimal pure decimal to N decimal, and finally output the result.
Tip: you can save each digit of the n-decimal in an array, and then output it in the order that meets the requirements. If it cannot be converted accurately, 16 decimal places will be reserved.
###Input format:
A positive decimal pure decimal, an integer n (n < 10), data separated by spaces.
###Output format:
N decimal, up to 16 decimal places, the final output newline character.
###Input example:
```in
0.8 2
```
###Output example:
```out
zero point one one zero zero one one zero zero one one zero zero one one zero zero
```







answer:If there is no answer, please comment