Computer Science, asked by jeetsroy, 2 months ago

Write a program to accept a number and display the sum of it's even digits and odd digits separately​

Answers

Answered by 2008sourabhkumar2008
1

Answer:

Given a number N, the task is to find the sum of digits of a number at even and odd places.

Examples:

Input: N = 54873

Output:

Sum odd = 16

Sum even = 11

Input: N = 457892

Output:

Sum odd = 20

Sum even = 15

HOPE IT WILL HELP YOU

Similar questions