What does the following method do?
```
// Parameter b must be positive to prevent infinite recursion
static int Mystery(int a, int b)
{
if (b == 1)
{
return a;
}
else
{
return a + Mystery(a, b - 1);
}
}
```
The method returns the equivalent value of a times b where b is greater than 0.
Computer Science & Information Technology
You might also like to view...
Explain how a linked style includes elements of both character and paragraph formatting
What will be an ideal response?
Computer Science & Information Technology
A space-division multiplexing technique where the data stream is split into multiple parts called spatial streams"
What will be an ideal response?
Computer Science & Information Technology