HW1 Write a Matlab function that calculates the factorial of a number using the flowchart given below

Showing the single result

Showing the single result