Sum Until Zero
Medium📝 Description
Keep taking input numbers until 0 is entered, then return the sum.
Input Format
5, 3, 0
Output Format
8
Constraints
Numbers ≤ 10^5
🔍 Sample Input
5, 3, 0
✅ Sample Output
8
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run