C program to find factorial of a number without using recursion

C program to find factorial of a number without using recursion

Output:

Enter a number to get its factorial: 5
Factorial of 5 is 120

Implementation: