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
0
Answer:
input :N= 5487
output:
sum odd= 16
sum even =11
Input:N=457892
Output:
Sum odd=20
Sum even =15.
Similar questions
Social Sciences,
3 months ago
Science,
3 months ago
History,
3 months ago
Math,
6 months ago
English,
6 months ago
Hindi,
10 months ago
English,
10 months ago
Social Sciences,
10 months ago