78.5k views
3 votes
Write an expression that computes the average of the values 12 and 40.

User Tangurena
by
4.7k points

1 Answer

2 votes

Answer:

The answer to this question is given below in the explanation section

Step-by-step explanation:

The expression that computes the average of value 12 and 40 is given below:

average = (12+40)/2;

in programming language we can write this expression as like;

int average = (12+40)/2;

User Dopamane
by
4.6k points