title: How to print different characters using just one for loop
body: <p>I have to print the following American Flag to the screen:</p>
  
  <pre><code>*****=====
  *****=====
  *****=====
  ==========
  ==========
  ==========
  </code></pre>
  
  <p>(<code>*****=====</code> 5 <code>*</code>’s and 5 <code>=</code>’s) (6 lines in total)</p>
  
  <p>I am only allowed to use one for loop and I cannot use the same <code>System.out.print();</code> twice.</p>
  
  <p>Currently I have: </p>
  
  <pre><code>for (x = 1; x &lt;= 3; x++) {
      System.out.println("*****=====");
  }
  for (x = 1; x &lt;= 3; x++) {
      System.out.println("==========");
  }
  </code></pre>
  
  <p>This works, but it has two for loops and I can't figure out how to do it with just one.</p>