Average of Three Numbers
EasyAcceptance: N/A
Given three integers a, b, and c, return the average of the three numbers as an integer (rounded down).
Example 1:
Input: a = 10, b = 20, c = 30
Output: 20
Explanation: (10 + 20 + 30) / 3 = 60 / 3 = 20
Example 2:
Input: a = 5, b = 7, c = 9
Output: 7
Explanation: (5 + 7 + 9) / 3 = 21 / 3 = 7
Constraints:
- -100 <= a, b, c <= 100
Discussion
Please login to view and join the discussion.
Login to ContinueLoading...
Status:Not run yet
Run your code to see results