title: Formatting a barcode with hyphens in between - Assignment question
body: <p>The assignment at my first year uni computing course says my program should read a barcode number, and then display the same 13 digit barcode number separated by hyphens. For example, 9300675016902 should look like 930-067501-690-1. </p>
  
  <p>The restrictions say I can't use the following:</p>
  
  <p>No arrays
  No strings
  No functions.</p>
  
  <p>Any directions on this?</p>
  
  <p>So far I have:</p>
  
  <pre><code>part1 = barcode/10000000000;
  </code></pre>
  
  <p>which gives me the first three digits, and this:</p>
  
  <pre><code>part4 = barcode%10;
  </code></pre>
  
  <p>which gives me the last digit.</p>
  
  <p>Thanks in advance!</p>