Program to Calculate Factorial of a Number
Description:This program calculates the factorial of a number. Factorial is a basic concept in mathematics where the product of all positive integers up to a number is calculated. It uses a for loop to perform repeated multiplication and also demonstrates how to handle errors for invalid inputs (negative numbers). Usage:The user inputs a positive integer,