View Code of Problem 47

#include <iostream>
using namespace std;

int main(){
  double a,b,c,s,m,ave;
  scanf("%lf%lf%lf",&a,&b,&c);
  s = a+b+c;
  m = a*b*c;
  ave = s/3;
  printf("%.0lf %.0lf %.2lf",s,m,ave);
  return 0;
}

Double click to view unformatted code.


Back to problem 47