#include <stdio.h>
int main()
{
char cResponse = '/0';
printf("/na/tTurn the AC on/n");
printf("b/tTurn the AC off/n");
printf("/nEnter your selection: ");
scanf("%c", &cResponse);
if (cResponse == 'a'){
printf("/nAC is now on/n");
}
if (cResponse == 'b') {
printf("/nAC is now off/n");
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266409.html