c

switch1

#include <stdio.h>
int main() {
    int x=2;
    switch(x)
    {
    case 1: printf("Choice is 1"); break;
    case 2: printf("Choice is 2"); break;
    case 3: printf("Choice is 3"); break;
    default: printf("Choice other than 1,2,3"); break;

    }
    return 0;
}
Was this helpful?