The top row on the right:)
this number line includes any number to the left of 6 including 6!
Answer: 8 turns
Step-by-step explanation: 5 children at a time, so 5*8=40, which is the closest to 38
Answer:
Reduce 87/297 to lowest terms
The simplest form of 87297 is 2999.
1/12
This is because there are 12 potential outcomes of this scenario. Tails, 5 is just one of them.
I will be using the language C++. Given the problem specification, there are an large variety of solving the problem, ranging from simple addition, to more complicated bit testing and selection. But since the problem isn't exactly high performance or practical, I'll use simple addition. For a recursive function, you need to create a condition that will prevent further recursion, I'll use the condition of multiplying by 0. Also, you need to define what your recursion is.
To wit, consider the following math expression
f(m,k) = 0 if m = 0, otherwise f(m-1,k) + k
If you calculate f(0,k), you'll get 0 which is exactly what 0 * k is.
If you calculate f(1,k), you'll get 0 + k, which is exactly what 1 * k is.
So here's the function
int product(int m, int k)
{
if (m == 0) return 0;
return product(m-1,k) + k;
}