printf("Enter A value:"); scanf("%d",&a); switch(a) { case 1: printf("case 1"); break; case 2: printf("case 2"); break; } |
printf("press UP arrow for add and DOWN arrow for sub:");/* any special charaters*/ ____________________________________(what statement we have to use here). switch(a) { case 234: /* just for example ACSII value of UP arrow */ printf("add"); break case 345: /* just for example ACSII value of DOWN arrow */ printf("sub"); break; } |
|
|