CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
using namespace std;
int main() {
double touches, bet, mines, winning;
int mineBox = 25;
cout << "Enter the number of mines: ";
cin >> mines;
mineBox = mines / mineBox; // Calculate the number of mine boxes
cout << "Enter the number of bet: ";
cin >> bet;
cout << "Enter the number of touches: ";
cin >> touches;
winning = mineBox * bet * touches;
cout << "Total winning: " << winning << endl;
return 0;
}
/*hey savey people it's Danni, i was wondering to calculate the winning amount of the mine bet game and i just triend my best to calculate, unfortunately it did not work. so guys need help to complete his code. their is 25 boxes and we choose 2 mines option to bet the game/ it's user defined
their is also amount of touches that we will made/ that's also user defined. for example i bet using $3 after 5 touches my bet amount balance will be twice (winning/2x), so what was the odd of each box/25 of them. even i don't thik this is 25 boxes have an odds because 3 of those are already 0/bomb odds after that we already touched 5 boxes those boxes have 2x odd my question is how much odd do the remaining boxes have
*/
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run