Welcome to the Ranch
I think you have misunderstood the quesstion. You are supposed to enter numbers and stop when −1 is entered. You want a loop for the input with
... while (input != -1) ... in. You need a separate function for reversing the digits in the number.
Warning: 567890 will reverse to 98765, and if you reverse that again you will get 56789, not the original number.