title: Understanding small basic while loop
body: <p>I have this code that Ive spent too much time on and I cant figure. Its supposed to get the averages of the numbers and then output the answer.I input the name and then when I type in the numbers it only takes 1 and after that i cannot continue. Im a beginner in small basic and am having a hard time understanding this.I know that visual basic is more advanced so im trying to understand the simple stuff before I get into visual basic. If I can get some advice it would be greatly appreciated.</p>
  
  <pre><code>total=0
  count=0
  TextWindow.WriteLine("What is the students name? :")
  name=TextWindow.Read()
  
  While name&lt;&gt;""
  TextWindow.Write(" Enter the grades :")
  grades=textwindow.ReadNumber()
  While grades&lt;&gt;""
  total= total+grades
  count=count+1
  EndWhile
  TextWindow.Write(name+ "average is" +total/grades)
  TextWindow.WriteLine("Enter the name of another student or press enter to exit :")
  name=textwindow.Read()
  </code></pre>