WSQ10 – Lists

Hi class, Im here with a new #WSQ

This time it is about a list of ten numbers, porvided by the user, and we will calculate the average and standard deviation of those numbers.

arrays

CODE

For this program Im using an array, this is like a box in wich you are introducing the ten numbers. Is like this

float x[10];

and when the user write the numbers the cin part is like this

cin>>x[i];

after this we continue writing the x[i] when we want to use the ten number in a cycle or something. MY CODE IS UPSTAIRS IF YOU WANT TO TAKE A LOOK

CC BY-SA 4.0 WSQ10 – Lists by alibarramg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.