24. Average of Three Marks

Acceptance — 0 accepted 0 submissions

Easy
BasicsMath
No companies listed
Anjali wrote three unit tests in Maths. Her class teacher wants the average mark for the report card.

Given the three marks, print their average.

Input Format
A single line with three integers a, b and c.

Output Format
Print the average rounded to exactly 2 decimal places.

Constraints
• 0 ≤ a, b, c ≤ 100

Example 1

Input
90 80 70
Output
80.00

Explanation (90 + 80 + 70) / 3 = 80.00

Example 2

Input
100 100 99
Output
99.67

Explanation 299 / 3 = 99.666..., which rounds to 99.67.

Example 3

Input
0 0 1
Output
0.33

Explanation 1 / 3 = 0.333..., which rounds to 0.33.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
80.00
No results yet
Run your code to test it against the sample cases.
Problem List