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

PROGRAMMING:Iterative method for square root of positive number

Luz5年前 (2021-05-10)题库453
Using iterative method to find the square root of positive number. x0=a/2;

###Input format:
It is required to enter real numbers a (a > 0) and EPS (EPS > 0) on one line.
###Output format:
Output square root, keep 4 decimal places and iteration times.
###Input example:
Here is a set of inputs. For example:
```in
7.8 0.01
```
###Output example:
The corresponding output is given here. For example:
```out
2.7949 3
```







answer:If there is no answer, please comment