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
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
Science,
1 month ago
Math,
1 month ago
Music,
3 months ago
English,
10 months ago
Computer Science,
10 months ago