Basic Switch Statement Example in C
This C program prompts the user to enter a number and uses a switch statement to check if it matches 10, 20, or 30. Depending on the input, it prints the corresponding number or a default message if the number is not one of those options.Leave a Comment