using System;
class program
{
static void Main(string[] args)
{
public int find( int n, int p)
{
if(n==0) return p;
else return find(p%n,n);
}
Console.WriteLine( find(12,8));
}
}
This code is giving compilation errors.
I am new to c# programming.
Code:using System; class program { static void Main(string[] args) { Console.WriteLine( find(12,8)); } public int find( int n, int p) { if(n==0) return p; else return find(p%n,n); } }
Thank You
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks