Advertisement
Guest User

Castle-Techno

a guest
Jul 14th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <iostream.h>
  3. #include <conio.h>
  4. #include <cstdlib.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.  
  27. return EXIT_SUCCESS;
  28.  
  29. }else {
  30. printf( "\n------------------------\n");
  31. printf( "Maaf ID & PASSWORD Salah!" );
  32. printf( "-------------------------\n\n");
  33. i = i +1;
  34. }
  35. }
  36. while (i <= 3) ;
  37. printf( "Anda Telah 3x Memasukan ID & PASSWORD Yang Salah\n");
  38. printf( "Mohon Maaf Akun Anda Kami Blokir, Terima Kasih..");
  39.  
  40. getch();
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement