calcAverage solution


Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment


5/5 - (1 vote)

5. (TCOs 6 and 8) Write a C# function called calcAverage to calculate and return the average of two numbers. Your main module should prompt the user for the numbers and pass them to the function. The answer is printed in your main module.

The output should look like this (note that it should work for any values that are input; these are just examples).

Enter a number: 10

Enter a number: 21

The average of 10 and 21 is 15.5

Press any key to continue . . .