The output is either a 0 or a 1. Never outputs the correct answer, which is suppose to be the standard deviation of 4 values. Here is the code. Is my calculation incorrect?
#include <iostream>
#include <cmath>
using namespace std;
You're passing score1, score2, score3 and score4 into input by value. These means that if you change the values of those variables inside input - which you do - those changes are not reflected in the values of the variables in main. The variables inside input are copies of the ones in main, not the same variables.
You need to pass by reference, using either pointers or references.