View Code of Problem 47

#include <stdio.h>
int main( ){
	int a,b,c;
	int d,sum;
	double avr;
	scanf("%d%d%d",&a,&b,&c);
	sum=a+b+c;
	d=a*b*c;
	avr=1.0*sum/3;
	printf("%d %d %.2lf",sum,d,avr);
}

Double click to view unformatted code.


Back to problem 47