View Code of Problem 47

#include<iostream>
#include<iomanip>

using namespace std;

int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    int sum=a+b+c;
    int mul=a*b*c;
    double even=(a+b+c)/3.0;
    cout<<sum<<" "<<mul<<" ";
    cout<<fixed<<setprecision(2)<<even;
    return 0;
}

Double click to view unformatted code.


Back to problem 47