title: How do you continue to scan until new line C without using (fgets)
body: <p>I'm trying to create a while loop to scan a group of words until a new line is entered. I cannot use fgets as I will need the length of each individual word to compute the average of the words.This is my code. Any help will be appreciated.</p>
  
  <pre><code> while(1){
      scanf("%s",&amp;input);
      if(input=="\n")
      break;
  </code></pre>