I have just started a C++ class. I am totally confused right now. I have an assignment that asks me to reverse integers without using arrays or strings. The program should consist of two loops. The program should look something like this:
Enter a variable (negative or 0 to quit): 2345
Your variable reversed is 5432
How do I get the varable to reverse?