#include <stdio.h>
int main()
{
char answer;
printf("Do you like bagels? (y/n)");
scanf(" %c", &answer);
if ((answer == 'y')|| (answer== 'n') ) {
printf("Good job, you didn't mess anything up");
}else {
printf("Keyboard much?");
}
return 0;
}
both of them are true case..
#include <stdio.h>
int main()
{
char answer;
printf("Do you like bagels? (y/n)");
scanf(" %c", &answer);
if ((5<90)|| (10==10) ) {
printf("Good job, you didn't mess anything up");
}else {
printf("Keyboard much?");
}
return 0;
}
Comments
Post a Comment