View Code of Problem 47

#include<iostream>
#include<algorithm>
#include<math.h>
using namespace std;
int main() {
	double a,b,c;
	cin>>a>>b>>c;
	int sum=a+b+c;
	int num=a*b*c;
	
	printf("%d %d %.2lf",sum,num,(a+b+c)/3);
	return 0;
}

Double click to view unformatted code.


Back to problem 47