#Program C++ nya :
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int username,password;
int a;
cout<<"WELCOME IN ATM"<<endl;
cout<<endl;
int user = 0000;
int pass = 1234;
a=1;
do{
cout<<"Masukka Username Anda = ";cin>>username;
cout<<"Masukkan Password Anda = ";cin>>password;
if (username==user&&password==pass){
cout<<"Anda masuk di ATM"<<endl;
}else{
cout<<"Username dan Password yang anda masukkan salah, silahkan coba lagi"<<endl;
a=a+1;
}}
while (a<=3);
cout<<"ATM ANDA TERBLOKIR !!! Segera Hubungi Customer Service !!!"<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Tidak ada komentar:
Posting Komentar