diff --git a/073/.vscode/settings.json b/073/.vscode/settings.json new file mode 100644 index 0000000..0cba2e6 --- /dev/null +++ b/073/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "iostream": "cpp" + } +} \ No newline at end of file diff --git a/073/CASINO.cpp b/073/CASINO.cpp new file mode 100644 index 0000000..d0f7a59 --- /dev/null +++ b/073/CASINO.cpp @@ -0,0 +1,86 @@ +#include +#include +#include +using namespace std; +int main(){ + string player; + int amount; + int let; + int Dice; + char option; + int Amount_bid; + srand(time(0)); + cout<<"\t\t DOUBLE YOUR MONEY"; + cout<<"\n Enter the name of the player:"; + getline(cin,player); + cout<<"\n enter the initial amount to deposite::$"; + cin>>amount; + do{ + system("cls"); + + do{ + cout<<"\n welcome"<Ready to play"<>Amount_bid; + if(Amount_bid>amount){ + cout<<"you cannot bid amount higher than::"<amount); + + + + do{ + cout<<" guess a number from 1 to 10"<>let; + + if (let<=0 || let>10){ + cout<<"you cannot choose the number greater than 10!"<10); + + Dice=rand()%10+2; + + if(Dice==let){ + cout<<"CONGRALUTION YOU WON::"<>option; + + }while (option=='Y'|| option =='y'); + + cout<<"Thank you for playing this again \n\n Your current amount is::"<