Return the greater value between sum of even and odd digits of a numbe
Answers
Answered by
0
let even no 2n
odd no 2n-1
given condition (2n-1)+2n
=2n-1+2n
=4n-1
therefore the greater no is odd number
odd no 2n-1
given condition (2n-1)+2n
=2n-1+2n
=4n-1
therefore the greater no is odd number
Similar questions