Input: 'n' = 1986.
Output: [14, 10]
Explanation: Even digits are 8 & 6, and odd digits are 1 & 9. The sum of even digits = 14, and the sum of odd digits = 10.
The first and only line of input contains the integer 'n'.
The output consists of a single line containing two space-separated integers denoting the sum of even digits and the sum of odd digits, respectively.
You do not need to print anything, it has already been taken care of. Just implement the given function.
Use the modulo operation to find the digits of numbers.
First N
Can You Print
Print Name
Print Name
Print Name
Print Name
Print Name
Fizzbuzz Problem
Count Repeating Digits