Computer Science, asked by Aditi3149, 3 months ago

WAP in java to check whether the sum of second and third digit of a 4 digit no. , is even or odd?​

Answers

Answered by vikramkapoor848
0

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  

Similar questions