Computer Science, asked by rekhagarg13, 3 months ago

input a number and display its even digits only in blue j​

Answers

Answered by pottireshma355
1

First, calculate the reverse of the given number.

To the reverse number we apply modulus operator and extract its last digit which is actually the first digit of a number so it is odd positioned digit.

The next digit will be even positioned digit, and we can take the sum in alternating turns

Similar questions