write a program to find the factorial of a given number with out using any pointers and functions
Use a Iterative statement.
Accept the number from user for which you need Factorial.(try with printf scanf or with cin, cout).
then put a for loop with a initial variable value as 1 and final value as given by
the user. go on incrementing with a step of 1.
have a result variable assigned to 1 at the beginning.
Go on multiplying this result variable with loop variable and store the answer
in result variable.
Once after comming out of this for loop, result variable contains the
factorial of the entered number.
Regards,
Girish.