title: Compare two numbers in Haskell
body: <p><a href="http://i.stack.imgur.com/71w9v.png" rel="nofollow">http://i.stack.imgur.com/71w9v.png</a></p>
  
  <p>I have to find how much money a player wins. </p>
  
  <p>This must be done by creating a function called digits <code>Int-&gt;Int-&gt;Int</code>. For example if the first input is <code>13758455</code> and the second input of the function is <code>13758455</code> then I should get <code>1000000</code> in the compiler. </p>
  
  <p>This is normally an easy task in Java but I wasn't able to find something like a counter to count up as I find more digits in a number.</p>