#include<stdio.h> int main() { int a,b,c; int sum,product; double ave; scanf("%d %d %d",&a,&b,&c); sum=a+b+c; product=a*b*c; ave=sum/3; printf("%d %d %.2lf\n",sum,product,ave); return 0; }
Double click to view unformatted code.