Hello, I am new programming and I have a problem that I cannot solve. I am making a menu with switch with void functions so that they only print a message when the case option is selected. The code compiles well, but the problem is that when I select any menu option, the message is printed over and over as if it were a loop that is not closed and I don't know why if void does not return and the case break is declared . Please help me, I just want the message to be printed once.
This is my code: