title: do..while loop - not breaking when condition met
body: <p>So with these few lines of code I want to keep storing inputs into an array until dot('.') is written. But when dot is actually written nothing happens, it just makes me put another input.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #define MAX 100
  
  int main()
  {
      char array[MAX];
      int i = 0;
  
      do{
          scanf("%c", &amp;array[i]);
          i++;
  
      }while(array[i] != '.');
  
      return 0;
  }
  </code></pre>