Computer Science, asked by Suraj2003, 6 months ago

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.
forexamples Input W: 2796041
Output N:3687132​

Answers

Answered by Tejushreem
0

Answer:

input :N= 5487

output:

sum odd= 16

sum even =11

Input:N=457892

Output:

Sum odd=20

Sum even =15.

Similar questions