I am having trouble of thinking of good ways to do this program. Basically all I have to do is get an integer and print it out backwards. Is there a way to convert a int to a string? A sample output would work like this:
Please enter in a number: 12345
5 4 3 2 1
We don't even have to get it from the user, but I want to because its kind of crappy to have to change it every time you want to use a different number. The way they wanted us to do it was with modulus and division operations, which is alright, but is there another way anyone knows of?
Thankee
Please enter in a number: 12345
5 4 3 2 1
We don't even have to get it from the user, but I want to because its kind of crappy to have to change it every time you want to use a different number. The way they wanted us to do it was with modulus and division operations, which is alright, but is there another way anyone knows of?
Thankee
