How to write a C Program Switch - Case Example in C Programming Language ?
Solution For C Program :
//C Program Switch - Case Example.
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
switch(n){
case 1:
printf("A");
case 2:
printf("B");
break;
default:
printf("C");
}
return 0;
}