Guest User

Untitled

a guest
Jun 14th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char InputVar[16] ;
  5.  
  6. printf("Choose between Apple or Samsung: ");
  7. scanf("%s", &InputVar);
  8.  
  9. if(InputVar[0]== 'a', 'p')
  10. {printf("I like Apple too <3 \n");}
  11.  
  12. else
  13.  
  14. {printf("You're lousy!!");}
  15.  
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment