Calculate Cart Total
Easy📝 Description
Given a list of products with prices, calculate the total cart value.
Input Format
[ {"name": "Shirt", "price": 20}, {"name": "Jeans", "price": 50} ]
Output Format
70
Constraints
Number of products ≤ 1000
🔍 Sample Input
[ {"name": "Shirt", "price": 20}, {"name": "Jeans", "price": 50} ]
✅ Sample Output
70
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run