Logic for factorial
The factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. The function uses for loop to calculate the …
Faculty: LAW BA LLB II Year(IV Sememester) Model Papers Sr. No. Paper Name Question Paper Link
Faculty: LAW BA LLB III Year(V Sememester) Model Papers Sr. No. Paper Name Question Paper Link
Faculty: Law B.A. LL.B VIII Semester Model Papers Sr. No. Paper Name Question Paper Link 1 # Click Here
The factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. The function uses for loop to calculate the …
The factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. The function uses for loop to calculate the factorial and returns the number. Program terminates if a non integer number is entered. This C language program uses for loop in just a single statement to calculates the factorial of integer number.
5!= 5 x 4 x3 x2 x1 =120
