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 LLB III Year(V Sem.)Model Papers Sr. No. Paper Name Question Paper Link 1 Pleading, Drafting and Conveyance Click Here
Faculty: Law Post Graduate Diploma In Labour Law(PGDLL)Model Papers Sr. No. Paper Name Question Paper Link 1 Labour Jurisprudence and the International Labour Organization(I.L.O.) Click Here 2 Labour Law Labour Welfare, …
Faculty: Law LLB II Year(III Sem.)Model Papers Sr. No. Paper Name Question Paper Link 1 Bhartiya Nagrik Suraksha Sanhita 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
