View Code of Problem 47

#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace std;
int main(){
    int a,b,c;
    double ave;
    cin>>a>>b>>c;
    ave=(a+b+c)/3.0;
    cout<<a+b+c<<" "<<a*b*c<<" "<<fixed<<setprecision(2)<<ave<<endl;
    return 0;
}



Double click to view unformatted code.


Back to problem 47