Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char* argv[])
  4. {
  5. int x;
  6. char y[100];
  7. while (x != 1 && x != 1337 && y != "SpookyPassword")
  8. {
  9. printf("enter the password to unlock the secrets\n");
  10. scanf("%d", &x, "%c", &y);
  11.  
  12. if (x == 1)
  13. {
  14. printf("I am the number 1 coder\n\n");
  15. }
  16.  
  17. else if(x == 1337)
  18. {
  19. printf("you have found the secret to becoming the best csgo player, it is to cheat. xD\n\n");
  20. }
  21.  
  22. else
  23. {
  24. printf("that is not one of the listed passwords\n\ntry again\n\n");
  25. }
  26.  
  27. if(y == "SpookyPassword")
  28. {
  29. printf("hello you spookster if this works");
  30. }
  31.  
  32. else
  33. {
  34. printf("that is not one of the listed passwords\n\ntry again\n\n");
  35. }
  36. }
  37. return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement