Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A) Write a function that gets a number n bigger than 2 and returns (2*3*4*.....*n) If the number given to the function is less than

  1. A) Write a function that gets a number "n" bigger than 2 and returns (2*3*4*.....*n) If the number given to the function is less than 2 the function must return -1. (B) Write a script and call your function then display the result when 10 is passed to the function.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Project Management in Practice

Authors: Samuel J. Mantel Jr., Jack R. Meredith, Sco

4th edition

470533013, 978-0470533017

More Books

Students also viewed these General Management questions