Why copy inputNumber into dummyInput before reversing its digits?
inputNumber
dummyInput
A copied scalar automatically becomes an array of digits.
The loop can consume the copy while the original value remains available for the final message.
The copy guarantees that any text input becomes numeric.
Assignment itself reverses the number.