You are on page 1of 1

using

using
using
using

System;
System.Collections.Generic;
System.Linq;
System.Text;

namespace CS2026
{
class Utils
{
public static int GCD(int a, int b)
{
if (b == 0)
{
return a;
}
else
{
return GCD(b, a % b);
}
}
}
class Program
{
static void Main(string[] args)
{
int a = int.Parse(args[0]);
int b = int.Parse(args[1]);
int gcd = Utils.GCD(a, b);
Console.WriteLine(gcd);
Console.ReadLine();
}
}
}

You might also like