Monthly Payroll Total Computation
Monthly Payroll Total Computation
EasyArrays0% accepted
Ravi manages compensation at TCS Pune's finance department. He has the gross salary array for all employees in his division. To process the monthly payroll, he needs the total payroll amount.
Approach
Given array of employee gross salaries, calculate and return the total payroll sum.
Input
salaries=[50000,60000,55000,70000]
Output
235000
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