Question: Using Linux scripting write a script which inputs a number from the user and makes sure the number is greater than 1 and less than

Using Linux scripting write a script which inputs a number from the user and makes sure the number is greater than 1 and less than or equal to 15. If so, then the script uses two for-loops, one to compute the summation of values from 1 to the users number and one to compute the factorial from 1 to the users number. Output the two computed results. If the number is out of bounds (less than 2, greater than 15), output an error message instead.

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!