Write a procedure to calculate factorial of a number entered by user

Send screenshot also