Computer Science, asked by adimon, 1 year ago

basic concepts for finding factorial of a program using function

Answers

Answered by bidisha496
4
factorial of n (n!)= 1×2×....×n

:. Here's the illustration of the process to find the factorial of a number in java:-
_______________________________
{
int i, n,f=1;
Sopln(" enter a no.");
n= Integer.parseInt( y.readLine());
for(i=1;i<=n;i++)
{
f=f*i;
}
Sopln("factorial of"+n+"="+f);
}
_______________________________

I hope it helps you....

adimon: i want the answer in c language
adimon: not in Java
adimon: ok
adimon: it's ok
Similar questions