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

PROGRAMMING:Square root formatting

Luz5年前 (2021-05-10)题库428
requirement:
Obtain an integer a input by the user, calculate the square root of a, reserve 3 decimal places, and print out.
The output result is 30 characters wide, right aligned, and extra characters are filled with plus sign (+). If the result exceeds 30 characters, the width of the result shall prevail.
###Input output example:
![ 3-1.png](~/4c48961d-779d-4987-b910-0e7eedb52d28.png)
###Input sample
```in
ten
```
###Output sample
```out
+++++++++++++++++++++++++3.162
```






answer:If there is no answer, please comment