Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char answer;
- printf("Do you like bagels? (y/n) \n");
- scanf(" %c", &answer);
- if( (answer=='y') || (answer=='n') ){
- printf("I feel the same way");
- }else{
- printf("Keyboard much?");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement