#include <stdio.h> int main() { int a,b,c; int sum,product; float avg; scanf("%d,%d,%d",&a,&b,&c); sum=a+b+c; product=a*b*c; avg=(a+b+c)/3.0; printf("%d,%d,%.2f",sum, product, avg); return 0; }
Double click to view unformatted code.