17. The factorial of an integer is the product of that integer multiplied by all the positive non-zero integers less than that integer. So, 5! (! is the mathematical symbol for factorial) is 5 * 4 * 3*2*1. 4! is 4*3*2*1, so 5! could be written as 5*4!. So a recursive definition of factorial is n! is n*(n-1)!, as long as n >1. 1! is 1. What is the recursive call for this function (fact)?

a. fact(n)*n;
b. fact(n-1)*n;
c. (n-1)*fact(n)
d. fact(n-2)*(n-1)


b. fact(n-1)*n;

Computer Science & Information Technology

You might also like to view...

Planning a project by starting with broad categories of tasks is called the ____ method of creating a WBS.

A. bottom-up B. top-down C. summary D. visionary

Computer Science & Information Technology

What are two things that can be done when a resource conflict is detected between two adapters? (Select two.)

A) Reboot the computer. B) Move one of the adapters to a different expansion slot. C) Flash the BIOS. D) Update the operating system. E) Use Device Manager to reorder addresses.

Computer Science & Information Technology

Mobile apps known as news ________ collect articles from a variety of sources and present them to you in a magazine-style format.

A. aggregators B. blogs C. portals D. servers

Computer Science & Information Technology

The application design tool that is a visual representation of the logic in a function within a program is the ____.

A. Flowchart B. Detail design C. Pseudocode D. Structure chart E. Waterfall model

Computer Science & Information Technology