Recursive method is a trick, which use to self calling. It means a method, which call itself, that is recursive method. How to use it? See in given below example.
Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace recursive_method_in_c_sarp
{
class fact
{
public int result( int val)
{
int answre;
if (val == 1)
{
return 1;
}


Join the conversation! Your thoughts help the community grow.