0

this program does not read display smallest and largest values in order

```
#include<iostream>
using namespace std;
int main()
{
int sum;
int product;
double average;
int x,y,z;
int largest;
int smallest;
cout<<" Enter Three Integers of your Choice "<<endl;
cout<<" *********************************** "<<endl;
cin>> x >> y >> z;
cout<<endl;
smallest = x,y,z;
largest = x,y,z;
sum = x + y + z;
product = x * y * z;
average = double(sum)/3;
if( x > y )
if(x > z)
x=largest;
if( x < y )
if(x < z)
x=smallest;
if( y > x )
if(y > z )
y =largest;
if(y < x )
if(y < z)
y=smallest;
if( z > y )
if(z > x)
z =largest;
if(z < y )
if(z < x)
z = smallest;
cout<<" Sum "<<" \t "<<" Product "<<" \t "<<" Average "<<"\t"<<"smallest"<<"\t"<<"largest"<<endl;
cout<<" *** "<<" \t "<<" ******* "<<" \t "<<" ******* "<<endl;
cout<< sum <<" \t\t "<< product <<" \t\t "<< average <<"\t\t"<<smallest<<"\t\t"<<largest<<endl;
cout<<endl;
return 0;
}
```