input a number and display its even digits only in blue j
Answers
Answered by
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
English,
3 months ago
Science,
3 months ago
Chemistry,
3 months ago
Social Sciences,
7 months ago
Chemistry,
1 year ago