Offer

Switch Case Program in C language | C Language | Switch Case


Switch case Program in C Language :


Switch Case program Output :

(1).


(2).



Copy from below 📝 : :

[ show your fortune for your name ]

 #include<stdio.h>

#include<conio.h>

int main(){    char name;    printf("enter your name's first alphabet \n");     scanf("%c",&name);    switch(name)    {    case'a':        printf("you are very curious ");        break;    case'b':        printf("you are always busy ");        break;    case'd':        printf("you are fullfil to ego ");        break;    case'g':        printf("you are very polite ");        break;    case'c':        printf("you are always happy");        break;    case'l':        printf("you are very helpful ");        break;    case'h':        printf("you are hardworker");        break;    default:        printf("you are always joyful");    }}

For more rogram :

 Download pdf file of Program :


Post a Comment

0 Comments