title: Ocaml syntax error in a simple if-then-else
body: <p>I want to change some code written in C into Ocaml </p>
  
  <p>Here is a C code</p>
  
  <pre><code>int a, b;
  if(m &gt; n)
  {
      a = n;
      b = m;
  }
  else
  {
      a = m;
      b = n;
  }
  </code></pre>
  
  <p>and I tried to change it into Ocaml but somehow I got a syntax error at the second line. </p>
  
  <pre><code>let rec gcd m n =
   if m &gt; n then begin let a = n in; let b = m in end
   else begin let a = m in; let b = n in end
  </code></pre>
  
  <p>What is the problem and how can I fix it?</p>