include stdio int main void char scanf switch case printf you ansver b

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
int main (void){
char q;
scanf("%c",&q);
switch(q)
{
case 'y':
printf("you ansver %c\n",q);
break;
case 'n':
printf("you ansver %c\n",q);
break;
default:
printf("you don't enter any ansver\n");
break;
}
return 0;
}