投票表决器:
-输入Y,y,打印agree
-输入N,n,打印disagree
-输入其他, 打印lose
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch);
if(ch == 'Y' || ch == 'y') {
printf("agree");
}
else if(ch == 'N' || ch == 'n') {
printf("disagree");
}
else {
printf("lose");
}
return 0;
}