Computer Science, asked by annyeonghaseyo02, 9 hours ago

Write a procedure that will compute and return the average of three numbers. The procedure should have three parameters of type double representing the numbers to be averaged. (for example the average of x, y and z is given by (x+y+z)/3.0)

please computer experts really need your help

Answers

Answered by johandamian776
7

Answer:

The mean is the average of the numbers. It is easy to calculate: add up all the numbers, then divide by how many numbers there are. In other words it is the sum divided by the count.

Answered by sourasghotekar123
1

The following procedure computes and returns an average of three numbers of type double.

main()

{

double a,b,c,avg;

printf("Enter three numbers:");

scanf("%lf %lf %lf",&a,&b,&c);

double avg=\frac{a+b+c}{3};

printf("Average=%lf",avg);

}

#SPJ3

Similar questions