anonymous
2013-04-16 21:14:49 UTC
double percentageOdds(int N, int X) {
int oddsX = 0; // number of odd numbers > X we got so far
// insert your C++ code here
}
// test driver
int main() {
double p;
p = percentageOdds(1000, 3);
cout << “I tossed 1000 dice, and “ << x << “ times I got an odd number bigger than 3.” << endl;
system(“pause”);
}