View Code of Problem 47

#include<stdio.h>  
#include<string.h>   
int main()  
{  
    int a,b,c;
    int sum;
    int sum1;
    float sum2;
    while(scanf("%d %d %d",&a,&b,&c)!=EOF){
    	sum = a + b + c;
    	sum1 = a*b*c;
    	sum2 = (a+b+c)/3;
    	printf("%d %d %.2f\n",sum,sum1,sum2);
    }
    return 0;  
}  

Double click to view unformatted code.


Back to problem 47