View Code of Problem 47

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
 
int main() {
	int a,b,c,sum,mul;
	scanf("%d %d %d",&a,&b,&c);
	double ave;
	sum=a+b+c;
	mul=a*b*c;
	ave=sum/3.0;
	printf("%d %d %.2lf",sum,mul,ave);
}

Double click to view unformatted code.


Back to problem 47