Standard
C Switch Case – How to use
- Lucas
- March 14, 2012
You will learn how to use the switch command in C to execute a block of code based on a multiple choice selection. Below is an example of a MENU using the switch command: switch (menu) { case 1: printf(“Voce escolheu a opcao 1”); break; case 2: printf(“Voce escolheu a opcao 2”); break; default: printf(“Voce