Answer Posted / dilip tekedil
public long Factorial(short num)
{
if (num == 1) return (long)1;
return num * Factorial(--num);
}
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What is a partial method?
How to assign Null value to Var?
Does c# have a 'throws' clause?
What is view state c#?
What is an assembly loader?
What is the difference between a field and a property in c#?
What is primitive types in c#?
What is a namespace server?
What are the advantages of using assemble language programming?
Describe ado.net?
Why do we need dependency injection in c#?
What is generic in c#?
What is inner class in c#?
what are the differences between a class and structure
What does return do in unity?