as in abridging it or use other type of commands, etc...
By the way I'm using
System("Pause") because of Dev c++Here is the code
#include <iostream>
#include <string>
using namespace std;
int main()
{
double y,c,k,l,sum ;
double result;
cout<<"Please enter a 4 numbers at the end there will be a mean for the sum of the numbers."<<endl<<endl<<endl;
cout<<"First number "<<endl;
cin>> y;
cout<<"Second number"<<endl;
cin>> c;
cout<<"Third number"<<endl;
cin>> k;
cout<<"Fourth number"<<endl;
cin>> l;
result = (y + c + k + l) / 4;
cout<<"the mean of the numbers is:"<<result<<endl;
system("pause");
return 0;
}
Edited by vaironl, 05 June 2011 - 03:23 PM.
Typos


Sign In
Create Account


Back to top









