//Calculate sum,average,product,smallest and largest of three integers.
#include<iostream>
int main()
{
int x,y,z,sum,average,product,smallest,largest;
std::cout << "Please enter three integers: ";
std::cin >> x >> y >> z;
sum = x+y+z;
average = sum/3;
product = x*y*z;
smallest = std::min(std::min(x,y),z); // Using twice min.
largest = std::max(std::max(x,y),z); //Using twice max.
std::cout << "sum: " << sum << std::endl;
std::cout << "average: " << average << std::endl;
std::cout << "product: " << product << std::endl;
std::cout << "smallest: " << smallest << std::endl;
std::cout << "largest: " << largest << std::endl;
}