View Code of Problem 47

#include <stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>

int main(){
	
	double a,b,c;
	scanf("%lf%lf%lf",&a,&b,&c);
	double d,e,f;
	d = a+b+c;
	e = a*b*c;
	f = (a+b+c)/3;
	printf("%.0lf %.0lf %.2lf",d,e,f);
	
} 

Double click to view unformatted code.


Back to problem 47