Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. int main () {
  2. system("COLOR f0");
  3. double x;
  4. double x = 7331;
  5. do {
  6. cout <<"Guess a number."<<endl;
  7. cin >> x;
  8. if (x == 7331);
  9. cout <<"Congratulations, You won. \n"<<"Username: Sup4991@aol.com \n"<<"Password:Ilikefish5 \n"<<endl;
  10.  
  11. else if(x > 7331);
  12. cout <<"Fail, Lower."<<endl;
  13.  
  14. else if(x < 7331);
  15. cout <<"Fail, Higher."<<endl;
  16. else
  17. cout <<"Congratulations, You won. \n"<<"Username: Sup4991@aol.com \n"<<"Password:Ilikefish5 \n"<<endl;
  18. }
  19. while ( x !=7331);
  20. system("PAUSE");
  21. system("cls");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement