Question: Question 3 please 3. (2 pt) Write a script that enables you to calculate and display factorial of n, i.e, n! (https://www.mathsisfun.comumbers/factorial.html). Let's use n
3. (2 pt) Write a script that enables you to calculate and display factorial of n, i.e, n! (https://www.mathsisfun.comumbers/factorial.html). Let's use n 5. Note: this script should include loop statement AND "fprintf to control the loop and print the outcomes on the screen. You may need to write a script (m-file), i.e., "facto Al111B222.m" to provide Matlab/Octave command shown below. clear all % clear all the variables that you have used. n = 5; % n for factorial n your script should be given here] while (i > 1) [your script should be given here] end fprint f ('factorial of % -n, nFactorial); You need to turn in Octave (or Matlab) output by running the developed script, facto A111B222.m in the command window as given below >>facto_A111B222
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
