basic concepts for finding factorial of a program using function
Answers
Answered by
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....
:. 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
Similar questions