View Code of Problem 47

#include <bits/stdc++.h>
using namespace std;
int main()
{	
	int a,b,c;
	
	while(cin>>a>>b>>c) {
		int sum,cheng;
		double aver;
		sum = a+b+c;
		cheng = a*b*c;
		aver=sum/3.0;
		printf("%d %d %.2lf\n",sum,cheng,aver);

	} 
	
	return 0;
}

Double click to view unformatted code.


Back to problem 47