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));
}
}
Why the above code is giving errors?
I am new to C# programming.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: Compilation errorsThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |