is it possible to ask a question, but display the cursor above said question?

for example:
Code:
      cout << "5 / 25 = ";
      cin >> answer;
in the code snippet above, the cursor will appear one space after the = sign, but i want it to appear above the 5 / 25, is this possible?
-and if so, how?