Write a recursive version of this iterative function:
What will be an ideal response?
```
int g(int n)
{
int h = 1;
while (n > 1)
{
h = h * n;
n--;
}
return h;
}
```
```
int g(int n)
{
if(0==n || 1 ==n)
return 1;
return n * g(n-1);
}
```
Computer Science & Information Technology
You might also like to view...
The ________ button that appears next to the fill handle can be used to choose options for how to fill a selection
Fill in the blank(s) with correct word
Computer Science & Information Technology
When troubleshooting a connectivity issue, which of the following commands will give the technician a list of the host names connected to the network?
A. ping B. nbstat C. arp D. msconfig
Computer Science & Information Technology