Merit List Percentage Calculator
Merit List Percentage Calculator
EasyArrays60% accepted
Delhi Public School calculates final merit list for Class 12. Each student's 5 subject marks are stored in array. Percentage = average of all subject marks (each out of 100) = sum of marks / number of subjects. Find Meera's final percentage, rounded to 2 decimal places using float division (not integer division).
Approach
Given an array of subject marks (each out of 100), calculate the student's percentage (the average of the marks), rounded to 2 decimal places.
Input
5
80 85 90 88 91
Output
86.80
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards