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 << "Masukkan Password anda : "; cin >> password;
- percobaan = percobaan + 1;
- if (percobaan==5){
- cout << "Anda telah mencapai limit, program berhenti";
- exit(EXIT_FAILURE);
- }
- }while (password != "ridho");
- cout << "=======Selamat datang bos !=======";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement