Consider the following transformation of a positive integer where each of its even digits is replaced by the next higher odd digit. For example, the number is transformed to while the number is transformed to .
Given a sequence of positive integers (i.e., each of them is greater than zero), write a program that outputs their transformation to odd digits as described above.
The input is a sequence of positive integers followed by the special end marker (which is not part of the sequence).
For each of the elements in the sequence, a line with its transformation to odd digits.
Author: Pro1
Generation: 2026-01-25T12:02:50.506Z
© Jutge.org, 2006–2026.
https://jutge.org