public static void Main()
Console.WriteLine("Greatest Common Factor (GCF)");
Console.WriteLine("Please enter two numbers you want to find the Greatest Common Factor (GCF)");
int a1 = Convert.ToInt16(Console.ReadLine()) ;
int a2 = Convert.ToInt16(Console.ReadLine()) ;
for (int c = a1; c > 0 ; ){
if ( check == 0 && check1 == 0 ){
Console.WriteLine("The Greatest common factor is " + c );
for (int c = a2; c > 0 ; ){
if ( check == 0 && check1 == 0 ){
Console.WriteLine("The Greatest common factor is " + c );