Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- main (){
- int percobaan =0;
- string password;
- do{
- cout << "Masukan pswrd anda : "; cin >> password;
- percobaan = percobaan + 1;
- if (percobaan ==5){
- cout << "anda telah mencapai limit, program berhenti";
- exit (EXIT_FAILURE);
- }
- }while (password != "akbar26");
- cout << "NGETEH SU ANJINGGG";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement