title: Bubble sort loop, changes one number to 0
body: <p>I'm pretty new to programming. As the title says, I've wrote simple bubble sort code. There are 3 functions, one that takes numbers from user, second prints them, and there's this 3rd one, that bubble sorts numbers. I've forced it to sort numbers at least, but it's still turning one number to 0, and I don't have any idea. </p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  void acquire_num();
  void print_num();
  void sort_bubble();
  
  int numbers[5];
  
  
  int main()
  {
      acquire_num();
      print_num();
      sort_bubble();
      print_num();
  }
  
  void acquire_num()
  {
      for (int i = 0; i &lt; 5; i++)
      {
          cout &lt;&lt; "Write " &lt;&lt; i+1 &lt;&lt; " number: ";
          cin &gt;&gt; numbers[i];
      }
  }
  
  void print_num()
  {
      cout &lt;&lt; "Your numbers are:";
  
      for(int i = 0; i &lt; 5; i++)
      {
          cout &lt;&lt; " " &lt;&lt; numbers[i];
      }
      cout &lt;&lt; endl;
  }
  
  void sort_bubble()
  {
      int indicator;
      int store;
  
      do
      {
          indicator = 0;
          for (int i = 0; i &lt; 5; i++)
          {
              if(numbers[i] &gt; numbers[i+1])
              {
                  indicator = indicator+1;
                  store = numbers[i];
                  numbers[i] = numbers[i+1];
                  numbers[i+1] = store;
              }
          }
      }
      while(indicator != 0);
  }
  </code></pre>