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

PROGRAMMING:Calculate the standard deviation

Luz5年前 (2021-05-10)题库516
Programming to input a batch of numbers (no more than 100 numbers, input the number of data first), calculate the average value of these numbers, the sum of squares of deviation, standard deviation and output. In order to improve the calculation accuracy, double type variable (or array) is used to store data and results.
###Input format:
Input the number of data in the first line, and input data from the next line, separated by spaces.
###Output format:
The data is separated by newline character, and two decimal places are reserved.
###Input example:
```in
five
89 96 78 63 81
```
###Output example:
```out
eighty-one point four zero
six hundred and twenty-one point two zero
eleven point one five
```







answer:If there is no answer, please comment