Answer Posted / shanker
int numberfactorial(int number)
{
if (number == 1) {
return number;
}
else {
return number * numberfactorial(number - 1);
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is difference between first and firstordefault?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
Difference between debug.write and trace.write?
How does yield return work c#?
What is difference between for and foreach in c#?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
Can we override interface method?
What is a lambda expression in c#?
How to parse a date time string?
Is array a list?
What is response redirect in c#?
Is it possible to force garbage collector to run?
What is sql transaction in c#?
Can c# inherit multiple classes?
Is null in c#?