How to make a menu with submenus?

And how would I do that?
Because I tried my best not to use clear() in the main screen.