Write a program to accept a number and count the number of digits. If the number of digits is even,then print sum of even digits. If the number of digits is odd, print the sum of odd digits.
Answers
Answered by
0
Answer:
This all are odd number for example 2 is even number + 3 is odd number = 5 is odd number
Explanation:
2+2=4 all is even
2+3=5 even + odd = odd
Similar questions