Find Factorial of Number without using function
#include<stdio.h> #include<conio.h> void main() { int i,number,factorial; printf("\nEnter the number : "); scanf("%d",&n); factorial = 1; for(i=1;i<=n;i++) factorial = factorial * i; printf("\nFactorial of %d is %d ",n,factorial ); getch(); }
Output :
Enter the number : 5 Factorial of 5 is 120
Incoming search terms:
- factorial program in c without using function (2)
- how to find the factorial without using functions (1)
- flowchart to find factorial of a number without using function (1)
- find the factorail and its execution in c programming (1)
- find factorial of a number using doublely linked list in data structure using c (1)
- factorial using function in javascript using assignment operatior (1)