[ create a new paste ] login | about

Link: http://codepad.org/NIpVuWD1    [ raw code | output | fork ]

bot42 - C, pasted on Nov 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<stdlib.h>
int main()
{
char ch;
scanf("%c",ch);
printf("%c\n",ch);
switch(ch)
{
case 'y':
printf("y");
break;
case 'n':
printf("n");
break;
default:
printf("none");
}
return 0;
}


Output:
1
2
$
none


Create a new paste based on this one


Comments: