View Code of Problem 47

#include<iostream>
#include<iomanip>
using namespace std;
int main() {
	int a, b, c;
	cin >> a >> b >> c;
	cout << a + b + c << " ";
	cout << a * b * c << " ";
	cout << fixed<<setprecision(2) << (float)(a + b + c) / 3;

}

Double click to view unformatted code.


Back to problem 47