source file name: Switch5.C

 #include <stdio.h>

int   main() 

{

char gen;

//clrscr();

printf("\n enter Valid character for gender(m,f,t):\n");

gen=getchar();

  switch (gen)

{

  case 'm':

  case 'M':

printf("Male\n");   break;

  case 'f':

  case 'F':

printf("Female\n"); break;

  case 't':

  case 'T':printf("Transgender\n");break;


  default:printf("no valid Gender for this Character\n");

    }

 //getch();

return 0;

}

output: