title: Highest Common Factor C#
body: <p>I have the current coding and I feel as if it is close to what I need but I can't seem to get it to work for what I want. I am trying to get it to output the highest common factor of the two numbers entered.</p>
  
  <pre><code>            i = myInt;
  
              {
                  if (myInt % i == 0 &amp;&amp; myInt2 % i == 0)
                  {
                      Console.Write("Your GCF is...");
                      Console.Write("{0} ", i);
                      Console.ReadLine();
  
                  }
                  else
                      i--;
                  goto;
              }
  </code></pre>