Advertisement
Guest User

test

a guest
Sep 27th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. / Roulette_PB.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. int sum_1000 = 1000;
  11. int input;
  12. int input_1 = 100;
  13. int input_2 = 300;
  14. int input_3 = 500;
  15. int bet = 0;
  16.  
  17. cout << "Welcome To Roulette" << endl;
  18. cout << "Sum of 1000 kr has been added" << endl;
  19. cout << "Place your bet 1=100 , 2=300 , 3=500" << endl;
  20. cin >> input;
  21. while (true)
  22. {
  23. if (input == 1)
  24. {
  25. bet = 100;
  26.  
  27. break;
  28. }
  29. else if (input == 2)
  30. {
  31. bet = 300;
  32.  
  33. break;
  34. }
  35. else if (input == 3)
  36. {
  37. bet = 500;
  38.  
  39. break;
  40. }
  41. else
  42. {
  43. cout << "Given bet higher than current available amount" << endl;
  44. }
  45.  
  46. if (sum_1000 > bet)
  47. {
  48. (sum_1000 - bet);
  49. }
  50. else
  51. {
  52.  
  53. }
  54. }
  55.  
  56.  
  57.  
  58.  
  59.  
  60. return 0;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement