Question: In Class Lab 2 Name your program lab 2 . c Ask the user to enter a number between 1 and 1 5 If the

In Class Lab 2
Name your program lab2.c
Ask the user to enter a number between 1 and 15
If the user does not enter a number between 1 and 15, prompt the user to re-enter until they
have complied.
For example, if I enter 16, your output should be something like:
That is not a number between 1-15, please try again
Then prompt the user if they would like to use recursion or not. You can prompt them with a
simple Y or N. Be aware the input is case sensitive, so please use capital Y and N.
If recursion is desired, call a recursive function to calculate the factorial of N(N!). Where
N is the number entered by the user.
If recursion is not desired, call a function that does not utilize recursion to calculate the
a c c factorial of N(N!). Where N is the number entered by the user. please give me whole code and also use the edit thing in photo with specific line and also please give me output photo.
In Class Lab 2 Name your program lab 2 . c Ask

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!