title: reading two long sentences using scanf
body: <p>I want to read two long sentences from input using <code>scanf()</code> which are in two new lines.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>int main() {
      char a[100], b[100];
      scanf("%[^\n]s", a);
      scanf("%[^\n]s", b);
      printf("%s\n%s", a, b);
  }
  </code></pre>
  
  <p><strong>Input:</strong></p>
  
  <pre><code>she is beautiful
  That is a flower
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>she is beautiful
  </code></pre>
  
  <p>The second input is not being read by the <code>scanf()</code> statement.</p>
  
  <p><strong>How to fix it?</strong></p>