Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <cstdlib>
- using namespace std;
- string PIN, decyzja;
- int x=850, y;
- int main()
- {
- cout << "Witaj w banku Mrucznik RP!" << endl;
- Sleep(5000);
- system("cls");
- for (int s = 1; s<=100; s++)
- {
- system("cls");
- cout << "LOADING" <<endl<< s << "%" ;
- }
- for(int i = 1; i<=4; i++)
- {
- Sleep(300);
- cout << ".";
- }
- system("cls");
- cout << "Podaj swoj numer PIN: ";
- cin >> PIN;
- if(PIN=="1278")
- {
- for(int l = 1; l<=100; l++)
- {
- system("cls");
- cout << "LOADING" <<endl<< l << "%" ;
- }
- for(int a = 1; a<=4; a++)
- {
- Sleep(300);
- cout << ".";
- }
- cout <<"Poprawny PIN!";
- for(int v = 1; v<=3; v++)
- {
- Sleep(150);
- cout <<"."<<endl;
- }
- system("cls");
- cout <<"Saldo konta: "<<x <<endl;
- for (int j = 1; j<=100; j++)
- {
- system("cls");
- cout << "LOADING" <<endl<< j << "%" ;
- }
- for(int m = 1; m<=4; m++)
- {
- Sleep(300);
- cout << ".";
- }
- system("cls");
- cout <<"Chcesz zabrac pieniadze Zeziowi?(Tak/Nie) ";
- cin >> decyzja;
- if (decyzja=="Tak")
- {
- for (int p = 1; p<=100; p++)
- {
- system("cls");
- cout << "LOADING" <<endl<< p << "%" ;
- }
- for(int g = 1; g<=4; g++)
- {
- Sleep(300);
- cout << ".";
- }
- system("cls");
- cout << "Ile pieniedzy chcesz zabrac? ";
- cin >> y;
- for (int q = 1; q<=100; q++)
- {
- system("cls");
- cout << "LOADING" <<endl<< q << "%" ;
- }
- for(int i = 1; i<=4; i++)
- {
- Sleep(300);
- cout << ".";
- }
- system("cls");
- cout <<"Saldo konta: "<<x+y <<endl;
- }
- else
- {
- for (int u = 1; u<=100; u++)
- {
- system("cls");
- cout << "LOADING" <<endl<< u << "%" ;
- }
- for(int i = 1; i<=4; i++)
- {
- Sleep(300);
- cout << ".";
- }
- }
- system("pause");
- }
- if(PIN!="1278")
- {
- for (int z = 1; z<=100; z++)
- {
- system("cls");
- cout << "LOADING" <<endl<< z << "%" ;
- }
- for(int i = 1; i<=4; i++)
- {
- Sleep(300);
- cout << ".";
- }
- cout <<"Niepoprawny PIN!" <<endl;
- system("pause");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement