Computer Science, asked by ahadrizvibadaasgamin, 7 months ago

Write a Method to calculate and return the factorial of a number 'n'.
The method declaration is as follows:
int Fact(int n)​

Answers

Answered by lobhasimali09
1

Explanation:

int fact(int n)

{

int i, f=1;

for(i=1;i<=n;i++)

{

f=f*i;

}

return f;

}

Similar questions