Calculating Statistics
CodeChefOpen on judge ↗
You are required to write a simple statistics program which will perform various operations like average, minimum, maximum and sum. Input Each line of input will contain a keyword "average", "sum", "maximum" or "minimum", followed by a list of integer numbers. You are to calculate the appropriate statistic for the numbers given. There will be at least 1 number per line, and no more than 40. Out
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start