Guest User

Untitled

a guest
Oct 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6. int myInt = 6;
  7. int otherInt = 12 ;
  8. # You could also do int otherInt = myInt * 2 :P
  9.  
  10. printf ("Please put in the number '6' or the number '12': ");
  11.  
  12. cin >> userInt
  13.  
  14. if (userInt == myInt)
  15. {
  16. printf("You entered: 6!\n");
  17. }
  18. else if (userInt == otherInt)
  19. {
  20. printf("You entered 6!\n");
  21. }
  22. else
  23. {
  24. printf("BITCH, can't you read?\n");
  25. }
  26.  
  27. return 0
  28. }
Add Comment
Please, Sign In to add comment