Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #include <iostream>
  2. #include "windows.h"
  3. #include <string>
  4. using namespace std;
  5.  
  6. bool bamba(int number)
  7. {
  8. if (number < 200000000)
  9. {
  10. cout << "pipi ";
  11. return true;
  12. }
  13. cout << "kaki";
  14. return false;
  15.  
  16. }
  17.  
  18. int main()
  19. {
  20. int time = 2;
  21. int a, b;
  22. string name;
  23. string pass;
  24. int logatt = 0;
  25.  
  26.  
  27. while (logatt < 2)
  28. {
  29. cout << "enter username: ";
  30. cin >> name;
  31. cout << endl << "enter pass: ";
  32. cin >> pass;
  33.  
  34. if (name == "eli" && pass == "123")
  35. {
  36. cout << "you log in" << endl;
  37. break;
  38. }
  39. else
  40. {
  41. cout << "username or password is incorrect" << endl;
  42. logatt++;
  43.  
  44.  
  45. }
  46. if (logatt == 2)
  47. {
  48. cout << "2 many attempt we will show u the door now" << endl;
  49. cout << "THE DOOR\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
  50. cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
  51. cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
  52. cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
  53. cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
  54. cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
  55. while (time > 0)
  56. {
  57. cout << "exit in\n :" << time << "sec" << endl;
  58. time--;
  59. Sleep(1000);
  60. }
  61. return 0;
  62. }
  63. }
  64.  
  65. cout << "pick number" << endl;
  66. cin >> a;
  67. bamba(a);
  68. cout << "Pick number" << endl;
  69. cin >> b;
  70. if (a > b)
  71. {
  72. cout << "a is bigger then b" << endl;
  73. }
  74. else if (b > a)
  75. {
  76. cout << "b is bigger then a" << endl;
  77. }
  78. else if (a == b)
  79. {
  80. cout << "a is equal to b" << endl;
  81. }
  82. else
  83. {
  84. cout << "something whet wrong please try again\n";
  85.  
  86. }
  87. system("PAUSE");
  88. return 0;
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement