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
How can we sort an array in c#?
What is hashset c#?
What is the difference between icomparer and icomparable in c#?
Why do we need constructor?
What is a delegate how is it type safe?
To create a localized application which namespaces are necessary?
How do partial classes work in c#?
Does c# support templates?
Explain hash table in c# ?
How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?
What is marshalling in c#?
List the fundamental oop concepts?
Is array a list?
What is lazy loading entity framework?
What is serializable in c#?