Remove data from console after selecting a choice?

Basically, after a user has entered a choice, for example

1. Add
2. Multiply

I want it to delete the following text from the screen after user entry and move on to the display function.

Step 1:
Pick a choice:
1. Add
2. Multiply

Step 2:
You are in add:
Choose two numbers to add:


So basically, I do not want the console to append the data in the console, after a user selection I want it to delete all the print from the console and move on to the next statement/function.
system("cls"); for Windows
system("clear"); for Unix

I don't think it is in GREAT practice to use them, but they work most of the time....
Last edited on
Topic archived. No new replies allowed.