Problem2179--Calculate the average

2179: Calculate the average

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Declare (give a prototype for) a function named average_grade. This function returns a double and has four double arguments, test1, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments. You should retain 3 decimal places

Input

four double arguments, test1, test2, test3, test4

Output

the average, or arithmetic mean of the four arguments

Sample Input Copy

1.00,2.00,3.00,4.00

Sample Output Copy

2.500

Source/Category

19