Hey guys im trying to write a code to give me Arthimetic mean and standard deviation for 4 Integer values... i don't know what im doing wrong it's not letting me compile any ideas??
#include <iomanip>
#include <iostream>
#include <cmath>
using namespace std;
int main(void)
{
int X1;
int X2;
int X3;
int X4;
double Sol1,Sol2;
int mean;
cout<<"---*******Arthimetic Mean And Standard Deviation Calculator*******---";
cout<<"\n\nEnter The First Integer value:";
cin>>X1;
cout<<"Enter The Second Integer Value:";
cin>>X2;
cout<<"Enter The Third Integer Value:";
cin>>X3;
cout<<"Enter The Forth Integer Value:";
cin>>X4;
{
Sol1=(X1+X2+X3+X4)/4.0;
Sol2=sqrt(X1 - mean)^2 + (X2 - mean)^2 + (X3 - mean)^2 + (X4 - mean)^2 /3.0;
cout<<"\n\nThe Arthimetic Mean is:"<< Sol1 <<"\n\n and " <<"\n\nThe Standard Deviation is:"<<Sol2 << endl;
cout<<"\n\n\n*********************End Of Calculation************************";
}
cin.get();cin.get();
return 0;
}