//program to find the factorial value f any number using while loop
#include<stdio.h>
void main()
{
int i,n,fact=1;
printf("Enter the number\n");
scanf("%d",&n);
i=n;
while (i>=1)
{
fact=fact*i;
i--;
}
printf("The factorial value=%d",fact);
}
the above is a program for calculating tha factorial value of any number which is entered by the user
Copyright © 2026 eLLeNow.com All Rights Reserved.