View Code of Problem 47

#include<iostream> 
#include <stdio.h>
#include <math.h>
#include "string.h"
using namespace std;
int main(){
	 int a,b,c;
	 cin>>a>>b>>c;
	 int j,h;
	 double p;
	 j=a*b*c;
	 h=a+b+c;
	 p=(a+b+c)/3;
	 printf("%d %d %.2lf",h,j,p);
	return 0;
}

Double click to view unformatted code.


Back to problem 47