Advertisement
akbarbasya26

belajar password

Nov 11th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. main (){
  6. int percobaan =0;
  7. string password;
  8. do{
  9. cout << "Masukan pswrd anda : "; cin >> password;
  10. percobaan = percobaan + 1;
  11. if (percobaan ==5){
  12. cout << "anda telah mencapai limit, program berhenti";
  13. exit (EXIT_FAILURE);
  14.  
  15. }
  16. }while (password != "akbar26");
  17. cout << "NGETEH SU ANJINGGG";
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement