title: Outputting multiple combinations
body: <p>I am trying to output all of these variables in a certain order abc acb bac bca cab cba but it only outputs <code>xyz xzy yxz yzx zxy zyx</code> instead of <code>#$% #%$ $#% $%# %#$ %$#</code> and <code>123 132 213 231 312 321</code> as well. How do I make it so it outputs <code>xyz xzy yxz yzx zxy zyx</code> and <code>#$% #%$ $#% $%# %#$ %$#</code> and <code>123 132 213 231 312 321</code> when it tests for those values?</p>
  <p>Output all combinations of character variables a, b, and c, in the order shown below. If <code>a = 'x', b = 'y', and c = 'z'</code>, then the output is: <code>xyz xzy yxz yzx zxy zyx</code></p>
  <p>Your code will be tested in three different programs, with a, b, c assigned with 'x', 'y', 'z', then with '#', '$', '%', then with '1', '2', '3'.</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
     char a;
     char b;
     char c;
  
     cin &gt;&gt; a;
     cin &gt;&gt; b;
     cin &gt;&gt; c;
  
     a = 'x'; 
     b = 'y'; 
     c = 'z';
  
     cout &lt;&lt; a &lt;&lt; b &lt;&lt; c &lt;&lt; &quot; &quot;;
     cout &lt;&lt; a &lt;&lt; c &lt;&lt; b &lt;&lt; &quot; &quot;;
     cout &lt;&lt; b &lt;&lt; a &lt;&lt; c &lt;&lt; &quot; &quot;;
     cout &lt;&lt; b &lt;&lt; c &lt;&lt; a &lt;&lt; &quot; &quot;;
     cout &lt;&lt; c &lt;&lt; a &lt;&lt; b &lt;&lt; &quot; &quot;;
     cout &lt;&lt; c &lt;&lt; b &lt;&lt; a &lt;&lt; &quot;&quot;;
  
     cout &lt;&lt; endl;
  
     return 0;
  }
  </code></pre>