Question: Write a program using C that computes factorial for any input number repeatedly until -7 is entered. Example input and output: Please enter number between

Write a program using C that computes factorial for any input number repeatedly until -7 is entered.

Example input and output:

Please enter number between 1 and 10 for factorial calculation (-7 to end) :5

factorial for 5 is 120

Please enter number between 1 and 10 for factorial calculation (-7 to end) :6

factorial for 6 is 720

Do not add any logic to limit the input. The limit between 1 and 10 is to keep the calculation and output simple.

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 Databases Questions!