c
  1. c-program-to-find-factorial-of-a-number

Program to Find Factorial of a Number - ( C Programs )

Example:

Input:

Enter a number: 5

Output:

Factorial of 5 is 120

Explanation:

Factorial of a number is the product of all the positive integers from 1 to that number. We can calculate the factorial of a number using a loop.

For example, factorial of 5 can be calculated as:

5! = 5 x 4 x 3 x 2 x 1 = 120

Use:

This program can be used to calculate the factorial of any given number. It can be used in various mathematical calculations and applications.

Summary:

This program takes an input number from the user and then calculates its factorial using a loop. It then prints the output to the user. This program can be used in various mathematical calculations and applications.

Published on: