Hello dear

I am developing an console application, just simulation.

Well i need to show some menu option in from of user. with values as 1,2,3,4

4 stands for quit.

Well i just want to know that what is the best method to implement the menu option coding.

I also want the screen to be clear when user completes any of its selection apart from 4.

on 4 program should be closed

How this should be implemented?

Sandeep