View Code of Problem 47

#include <iostream>

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int s = a + b + c;
    int m = a  * b * c;
    double av = (a + b + c) / 3.0;
    printf("%d %d %.2f\n",s,m,av);
}

Double click to view unformatted code.


Back to problem 47