Sum of each digit in a number
Filed under Bank of America
The question
Write a C++ program to find the sum of each digit in a number (e.g., input 123 outputs 6).
No write-up yet. Related questions below have one.
Related Bank of America questions
Collected from public candidate posts and coding forums. Updated Nov 2026.