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

PROGRAMMING:For loop exercise: output the square root of all numbers from 1 to X and output by line.

Luz5年前 (2021-05-10)题库416
Read in a positive integer x within 10 (the variable name in the program is not necessarily x, self-defined), and output the square root table of all numbers from 1 to X (including x).
###Input format:
Enter the value of a positive integer X.
###Output format:
Output the square root of all numbers from 1 to X in two decimal places.
###Input example:
Here is a set of inputs. For example:
```in
four
```
###Output example:
The corresponding output is given here. For example:
```out
one
one point four one
one point seven three
two
```







answer:If there is no answer, please comment