c program:
//Write a program to find the factorial integer value.........
#include<stdio.h>
int main()
{
int factorial,total;
printf("Enter the value for factorial :\n");
scanf("%d",&factorial);
total=1;
while(factorial>=1)
{
total=total*factorial--;
#include<stdio.h>
int main()
{
int factorial,total;
printf("Enter the value for factorial :\n");
scanf("%d",&factorial);
total=1;
while(factorial>=1)
{
total=total*factorial--;
}
printf("The factorial number of =%d",total);
return 0;
}
printf("The factorial number of =%d",total);
return 0;
}
0 মন্তব্য(সমূহ):
Post a Comment