Advertisement
Guest User

Castle-Techno

a guest
Jul 14th, 2017
1,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.93 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <iostream.h>
  3. #include <conio.h>
  4. #include <stdlib.h>
  5.  
  6. main ()
  7. {
  8.  
  9. char user[50], pass[20];
  10. int i;
  11. printf( "------------------------------------------\n");
  12. printf( "Selamat Datang Di Login Form Castle Techno\n");
  13. printf( "------------------------------------------\n\n");
  14. i = 1;
  15. do {
  16. printf( "Username : ");gets(user);
  17. fflush(stdin);
  18. printf( "Password : ");gets(pass);
  19.  
  20. if ((strcmp(user,"castle23")==0) && (strcmp(pass,"aldy98")==0))
  21. {
  22. printf ( "\n--------------------\n");
  23. printf ( "Anda Berhasil Login \n" );
  24. printf ( "--------------------\n\n");
  25. system("PAUSE");
  26. return EXIT_SUCCESS;
  27.  
  28. }else {
  29. printf( "\n------------------------\n");
  30. printf( "Maaf ID & PASSWORD Salah!" );
  31. printf( "-------------------------\n\n");
  32. i = i +1;
  33. }
  34. }
  35. while (i <= 3) ;
  36. printf( "Anda Telah 3x Memasukan ID & PASSWORD Yang Salah\n");
  37. printf( "Mohon Maaf Akun Anda Kami Blokir, Terima Kasih..");
  38.  
  39. getch();
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement