#include "stdafx.h"
#include <iostream>;
using namespace std;
int main()
{
float x,y,z,sum,avg;
cout<<"entre the values";cout<<endl;
cout<<"entre the first value";
cin>>x;
cout<<"entre the second value";
cin>>y;
cout<<"entre the third value";
cin>>z;
sum=x+y+z;cout<<endl;
cout<<"the totle average of the num is";
avg=sum/3;
cout<<avg;
cout<<endl;
system("pause");
return 0;
}
---------------------------------------------
0 comments:
Post a Comment