title: Why is my code displaying a number 53 when I'm running my functions in c++
body: <p>My friend created a program that prints a triforce to the console, however when he ran his code he realized that it printed weird numbers instead of what was supposed to run.</p>
  
  <p>The code looks like this:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>using namespace std;
  
  #include &lt;iostream&gt;
  
  void ZeldaTriangle(int Size){
      for (int  row = 0; row &lt; Size; row++)
      {
          for (int spa = 0; spa &lt; (Size-row-1); spa++)
          {
              cout &lt;&lt; (" ");
          }
          for (int col = 0; col &lt; (row +1); col++)
          {
              cout &lt;&lt; ("@");
          }
          cout &lt;&lt; "" &lt;&lt; endl;
      }
  
  }
  void triforce_up (int Size, int character){
      for (int row = 0; row &lt; (Size); row++)
      {
          for (int spa = 0; spa &lt; (Size*2-row-1); spa++)
          {
              cout &lt;&lt; (" ") &lt;&lt; flush;
          }
          for (int col = 0; col &lt; (row +1); col++)
          {
              cout &lt;&lt; character &lt;&lt; flush;
          }
          cout &lt;&lt; "" &lt;&lt; endl;
      }
  }
  void triforce_down (int Size, int character){
      for (int row = 0; row &lt; (Size); row++)
      {
          for (int spa = 0; spa &lt; (Size-row-1); spa++)
          {
              cout &lt;&lt; (" ");
          }
          for (int col = 0; col &lt; (row +1); col++)
          {
              cout &lt;&lt; character;
          }
          for (int spa = 0; spa &lt; ((Size-row-1)*2); spa++)
          {
              cout &lt;&lt; (" ");
          }
          for (int col = 0; col &lt; (row +1); col++)
          {
              cout &lt;&lt; character;
          }
          cout &lt;&lt; "" &lt;&lt; endl;
      }
  }
  void print_ZeldaTriangle (int Size, int character){
      triforce_up (Size, character);
      triforce_down (Size, character);
  }
  int main() {
      int Size = 6;
      print_ZeldaTriangle(Size, '5');
  }
  </code></pre>
  
  <p>It should display a triforce created with the number "5", but instead it shows this with the number 53.</p>
  
  <pre><code>           53
            5353
           535353
          53535353
         5353535353
        535353535353
       53          53
      5353        5353
     535353      535353
    53535353    53535353
   5353535353  5353535353
  535353535353535353535353
  </code></pre>
  
  <p>I have attempted to change the "int character" to "string character" in order to prevent the error from happening but that displays a broken triforce that looks nothing like it should look like. </p>
  
  <pre><code>           5
            55
           555
          5555
         55555
        555555
       5          5
      55        55
     555      555
    5555    5555
   55555  55555
  555555555555
  </code></pre>