← Accenture questions

Sum of odds and evens in a number

Filed under Accenture

Given an integer `n`, compute and return the sum of all its odd digits and the sum of all its even digits as a tuple `(even_sum, odd_sum)`.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.