This program calculates the standard deviation of an individual series using arrays. Visit this page to learn about Standard Deviation.
To calculate the standard deviation, we have created a function named calculateSD().
Example: Population Standard Deviation
Output
Enter 10 elements: 1 2 3 4 5 6 7 8 9 10 Standard Deviation = 2.872281
Here, the array containing 10 elements is passed to the calculateSD() function. The function calculates the standard deviation using mean and returns it.
Note: The program calculates the standard deviation of a population. If you need to find the standard deviation of a sample, the formula is slightly different.