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
Math,
2 months ago
English,
2 months ago
Environmental Sciences,
2 months ago
Math,
5 months ago
English,
5 months ago
Hindi,
9 months ago
English,
9 months ago
Social Sciences,
9 months ago