fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. void display_and_login(){
  5. ll n;
  6. ll phn_no, pin_c, k , recent_mny =10000;
  7. vector<ll>phn_v{0};
  8. vector<ll>pin_v{0};
  9. cout<<"\n\t\t\t\t**....Welcome to our mobile banking apps....**\n\n";
  10.  
  11. cout<<"Enter a key what you want ?\n\n";
  12.  
  13. cout<<"\t\t1. Login. \n\t\t2. Resister. \n\t\t3. Back. \n\n";cin>>n;
  14. if(n == 1)
  15. {
  16. cout<<"Enter your phone number : ";
  17. cin>>phn_no;
  18. cout<<"Enter your pin code : ";
  19. cin>>pin_c;
  20. for(ll i=0; i<phn_v.size(); i++)
  21. {
  22. if( (phn_no != phn_v[i]) && (pin_c != pin_v[i]) )
  23. {
  24. ll a, ku;
  25. cout<<"\nSorry. Your Phone number and pin code doesn't exist in database. Now chose yourself .\n ";
  26. cout<<"\n\t\t1. Resister. \n\t\t2. Back. \n\n";
  27. cin>>a;
  28. if(a== 1)
  29. {
  30. phn_v.push_back(phn_no);
  31. k = i;
  32. pin_v.push_back(pin_c);
  33. cout<<"\nWe are elated to have you join our team. On behalf of the entire organization, we would like to heartily congratulate you!\n\n";
  34. cout<<"Please Recharge your account. If you not recharge your bank continue with 1 ."; cin>>ku;
  35. if(ku == 1)
  36. {
  37. cout<<"\n\t\t\t\tThanks for visiting our apps. Have a sweet day.\n\n";
  38. //return 0;
  39. break;
  40. }
  41. else
  42. {
  43. ll zu;
  44. cout<<"Enter the amount you recharge now :\t"; cin>>zu;
  45. recent_mny = zu;
  46. }
  47. }
  48. else{
  49. cout<<"\n\t\t\t\tThanks for visiting our apps. Have a sweet day.\n\n";
  50. // return 0;
  51. break;
  52. }
  53.  
  54. }
  55. else
  56. {
  57. ll z;
  58. cout<<"\nWhat does You want..??";
  59. cout<<"\n\n\t\t1. Cash-in. \t\t2. Cash-out. \t\t3. Send Money. \n\n";
  60. cout<<"\n\n\t\t4. Mobile Recharge. \t5. Pay Bill. \t\t6. Payment. \n\n";
  61. cout<<"\n\n\t\t7. SS to Bank. \t\t8. SS to ATM. \t9. SS to Another Mobile Bank . \n\n";
  62. cout<<"\n\n\t\t10. Bank to SS. \t11. Loans. \t\t12. Check Balance. \n\n";
  63. cin>>z;
  64. if(z == 1)
  65. {
  66. ll o;
  67. cout<<"How much money you cash in to your bank :\t"; cin>>o;
  68. cout<<"\n\t\t\tAfter cash in your bank balance is :\t"<<recent_mny+o<<" Taka"<<endl;
  69. }
  70. if(z == 2)
  71. {
  72. ll o;
  73. cout<<"How much money you cash out from your bank :\t"; cin>>o;
  74. cout<<"\n\t\t\tBefore cash out your bank balance is :\t"<<recent_mny<<" Taka"<<endl;
  75. cout<<"\n\t\t\tAfter cash out your bank balance is :\t"<<recent_mny-o<<" Taka"<<endl;
  76. }
  77. if(z == 3)
  78. {
  79. ll o;
  80. cout<<"How much money you send from your bank :\t"; cin>>o;
  81. cout<<"\n\t\t\tBefore Send money from your bank the balance is :\t"<<recent_mny<<" Taka"<<endl;
  82. cout<<"\n\t\t\tAfter cash in your bank balance is :\t"<<recent_mny+o<<" Taka"<<endl;
  83. }
  84. }
  85. }
  86. }
  87. else if(n ==2)
  88. {
  89. //Resister
  90. }
  91. else
  92. {
  93. cout<<"\n\t\t\t\tThanks for visiting our apps. Have a sweet day.\n\n";
  94. // return 0;
  95. }
  96. }
  97. int main()
  98. {
  99. display_and_login();
  100.  
  101. return 0;
  102. }
  103.  
  104.  
Success #stdin #stdout 0.01s 5448KB
stdin
Standard input is empty
stdout
				**....Welcome to our mobile banking apps....**

Enter a key what you want ?

		1. Login. 
		2. Resister. 
		3. Back. 


				Thanks for visiting our apps. Have a sweet day.