A new number N is created from W by applying the given technique - the odd digits are decreased by 1
and the even digits are increased by 1.
Recenample Input W:2796041
Output N:3687132
write the program in java
Answers
Answered by
0
Answer:Input: N = 54873
Output:
Sum odd = 16
Sum even = 11
Input: N = 457892
Output:
Sum odd = 20
Sum even = 15
Explanation:
Similar questions