#include<iostream.h>
#include<string.h>
#include<conio.h>
main()
{
char nama[20], kelas[10], password[4];
atas:
cout<<" S E L A M A T D A T A N G" ;
cout<<endl;
cout<<" Silahkan masukkan User Name & Password" ;
cout<<endl;
cout<<endl;
cout<<" UserName : " ; cin>>nama;
cout<<" Kelas : " ; cin>>kelas;
cout<<" Password : " ; cin>>password;
if (strcmp(password,"aaa")==0)
{
cout<<" Terima Kasih atas Partisipasinya..!" ;
cout<<endl;
cout<<" Tekan Sembarang Mas..!" ;
goto bawah;
}
else
{
cout<<
cout<<" Password Salah Bro..!" ;
clrscr();
goto atas;
}
bawah:
getch();
}
One response to “Pembuatan Password”
mas sekali-kali tolong buatin program java untuk penghitungan data absen thank