#include
#include
void main()
{
clrscr();
char a;
printf("Enter a charectar:");
a=getchar();
switch(a)
{
case 'a':
case 'A':
printf("A for apple:");
break;
case 'b':
case 'B':
printf("B for Ball:");
break;
case 'c':
case 'C':
printf("C for cat:");
break;
case 'd':
case 'D':
printf("D for Dog:");
break;
case 'e':
case 'E':
printf("E for egg:");
break;
default:
printf("Nothing:");
}
getch();
}
0 comments:
Post a Comment