How Do You Write A Factorial Program In C ?
How Do You Write A Factorial Program In C ? #include<stdio.h> int main() { int i,fact=1,number; printf(“Enter a number: “); scanf(“%d”,&number); for(i=1;i<=number;i++){ fact=fact*i; How do you explain a factorial program? Factorial of a positive integer n is product of all values from n to 1. For example, the factorial of 3 is (3 * 2