Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <iostream.h>
- #include <conio.h>
- #include <cstdlib.h>
- main ()
- {
- char user[50], pass[20];
- int i;
- printf( "------------------------------------------\n");
- printf( "Selamat Datang Di Login Form Castle Techno\n");
- printf( "------------------------------------------\n\n");
- i = 1;
- do {
- printf( "Username : ");gets(user);
- fflush(stdin);
- printf( "Password : ");gets(pass);
- if ((strcmp(user,"castle23")==0) && (strcmp(pass,"aldy98")==0))
- {
- printf ( "\n--------------------\n");
- printf ( "Anda Berhasil Login \n" );
- printf ( "--------------------\n\n");
- system("PAUSE");
- return EXIT_SUCCESS;
- }else {
- printf( "\n------------------------\n");
- printf( "Maaf ID & PASSWORD Salah!" );
- printf( "-------------------------\n\n");
- i = i +1;
- }
- }
- while (i <= 3) ;
- printf( "Anda Telah 3x Memasukan ID & PASSWORD Yang Salah\n");
- printf( "Mohon Maaf Akun Anda Kami Blokir, Terima Kasih..");
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement