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, calculateSD() function is created. The array containing 10 elements is passed to the function and this function calculates the standard deviation and returns it to the main() function.
Example: Calculate Standard Deviation using Function
Output
Enter 10 elements: 1 2 3 4 5 6 7 8 9 10 Standard Deviation = 2.87228