ok i am having more problems. when u run the code with a number like 1234567890 it prints out 987654321 and that is fine. but if you enter something like 123456789123456789 it prints out something else.
That would be attributed to overflow i.e. trying to store a number in an integer variable which exceeds the capacity of an integer data type.
Please input an integer: 23434324234343
original string: 23434324234343
reversed string: 34343242343432
reversed integer: 4007032 // overflow
also how can i make it not print out letters, i thought this would work. but its not