About this document
Int Main (Int I, Fact 1, Number Printf ("Enter A Number: ") Scanf ("%d",&number) For (I 1 I Number I++) (Fact Fact I ) Return 0 ) by mananadad is a document available to read on EtoBox.
This C program calculates the factorial of a user-input number. The user is prompted to enter a number, which is then stored and used in a for loop to iteratively multiply the number by all integers from 1 to itself, storing the increasing product in the "fact" variable. The program then returns 0 to indicate successful completion.
- Author
- mananadad
- Language
- EN