I'm supposed to write a program for class that takes an integer and reverses it. For example, 123 would become 321. I don't even know where to begin. I have looked at some similar examples online, but I don't understand. Thank you.
Once you've familiarized yourself with arrays, you can use a for-loop to easily flip the digits around. Let me know if you need an example - I'd be glad to help.
I stick with code assassin,use arrays and a for/while loop to reverse the order.store each variable in different spaces in the same arrays and display 'em by accessing each array space
Thank you! I think I understand now. My only problem now is that it has to be able to work for integers with any number of digits. I guess I'll have to use a loop of some kind, but I don't know what to do.
My instructor just told us that we can use arrays, but I have to use reference parameters somehow.