Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "windows.h"
- #include <string>
- using namespace std;
- bool bamba(int number)
- {
- if (number < 200000000)
- {
- cout << "pipi ";
- return true;
- }
- cout << "kaki";
- return false;
- }
- int main()
- {
- int time = 2;
- int a, b;
- string name;
- string pass;
- int logatt = 0;
- while (logatt < 2)
- {
- cout << "enter username: ";
- cin >> name;
- cout << endl << "enter pass: ";
- cin >> pass;
- if (name == "eli" && pass == "123")
- {
- cout << "you log in" << endl;
- break;
- }
- else
- {
- cout << "username or password is incorrect" << endl;
- logatt++;
- }
- if (logatt == 2)
- {
- cout << "2 many attempt we will show u the door now" << endl;
- cout << "THE DOOR\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
- cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
- cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
- cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
- cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
- cout << "\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>\n>>>>>>>>>>>>>>";
- while (time > 0)
- {
- cout << "exit in\n :" << time << "sec" << endl;
- time--;
- Sleep(1000);
- }
- return 0;
- }
- }
- cout << "pick number" << endl;
- cin >> a;
- bamba(a);
- cout << "Pick number" << endl;
- cin >> b;
- if (a > b)
- {
- cout << "a is bigger then b" << endl;
- }
- else if (b > a)
- {
- cout << "b is bigger then a" << endl;
- }
- else if (a == b)
- {
- cout << "a is equal to b" << endl;
- }
- else
- {
- cout << "something whet wrong please try again\n";
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement