View Code of Problem 47

#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	double y1, y2, y3;
	y1 = a + b + c;
	y2 = a*b*c;
	y3 = (y1) / 3;
	printf("%.0f %.0f %.2f", y1, y2, y3);
	return 0;
}

Double click to view unformatted code.


Back to problem 47