- 2
What is wrong with this code I have written?
Standard Deviation https://code.sololearn.com/cyNaClDb13S8/?ref=app (edited for clarity, code taken from lesson comment asking the same question. Note to OP, please type codes in code playground and link them to the question using the insert option)
3 Answers
+ 10
Ataki, There are numerous errors in your code.
When declaring multiple variables using a single line: use ,
Variable and function names can not have spaces.
operator += can not have spaces.
You have declared the function standard Deviation inside main.
Here is the code, corrected. (note: I did not change any logic, just corrected errors that prevented the code from executing)
https://code.sololearn.com/c8O3QLoFedjB/?ref=app
+ 9
@Ataki: Here is a document which may help you in future:
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
+ 1
Thanks.