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 hash c#?
Is c# a backend language?
Why does dllimport not work for me?
What is Implicit conversion in C#?
What is instantiating a class in c#?
What are console applications used for?
What are the steps to make an assembly to public?
Why do we need static in c#?
Which program construct must return a value?
What is predicate c#?
explain the features of static/shared classes.
What does dbml mean?
How can you set image source dynamically from c# application to ”test.png” file?
Why do we use void in c#?
What is the difference between “constant” and “readonly” variables in c#?