Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- / Roulette_PB.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int sum_1000 = 1000;
- int input;
- int input_1 = 100;
- int input_2 = 300;
- int input_3 = 500;
- int bet = 0;
- cout << "Welcome To Roulette" << endl;
- cout << "Sum of 1000 kr has been added" << endl;
- cout << "Place your bet 1=100 , 2=300 , 3=500" << endl;
- cin >> input;
- while (true)
- {
- if (input == 1)
- {
- bet = 100;
- break;
- }
- else if (input == 2)
- {
- bet = 300;
- break;
- }
- else if (input == 3)
- {
- bet = 500;
- break;
- }
- else
- {
- cout << "Given bet higher than current available amount" << endl;
- }
- if (sum_1000 > bet)
- {
- (sum_1000 - bet);
- }
- else
- {
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement