View Code of Problem 47

#include<bits/stdc++.h>
using namespace std;
#define max 10000
int main(){
	int a,b,sum,c;
	double k;
	cin>>a>>b>>c;
	cout<<a+b+c<<" ";
	cout<<a*b*c<<" ";
	k = (a+b+c)/3.0;
	printf("%.2lf",k);
	return 0;
} 

Double click to view unformatted code.


Back to problem 47