Really should not ask forums to do your homework. But what I would do is have a while loop that shows this menu until quit is set to true. Quit is a bool variable which is set to false in the beginning and only set to true if 5 is entered.
I didn't ask for people on this forum to do the coding. Just asking what should I use , e.g:function , array , structure or other thing that will work. And I'm new to this forum , sorry if I'm being rude.