Keep practicing functions. One way to approach this is to have a "menu" function that is called from main, perhaps something like this:



int menu(void)
{
// print menu items
//...