int i:
cout<<:\n\t\t*selamat datang*\n\n";
int user=0000
int pass=1111
i=1
do
{
cout<<"username anda :"; cin >> user;
cout<< "password anda :"; cin>> pass;
if(username ==user&password==pass) {
cout <<"Selamad, anda telah masuk"<<endl
}
else
{
cout<<"uer&pasword anda salah, silahkan coba lagi\n\n"<<endl;
i=i+1
}
}
while (i>=3)
cout<< "ATM anda terblokir ";
Sabtu, 23 November 2013
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar