Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

/* Program to Find Factorial of a Number without using Recursion */ #include <stdio.

h> main() { int n, i; long fact=1; printf("\nEnter any number: "); scanf("%d", &n); for (i=1; i<=n; i++) fact = fact*i; printf("\nFactorial = %ld", fact); getch(); }

You might also like