Question: (IN C++) Prompt the user to enter an integer n. If n is odd, then compute the following jump-factorial: 1-3+5-7++ (-1)n/2 *n; if n is
(IN C++) Prompt the user to enter an integer n. If n is odd, then compute the following jump-factorial: 1-3+5-7++ (-1)n/2 *n; if n is even, compute the following jump-factorial: 2*4*6**n; if n is negative or zero, the result is 0. Finally, output the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
