title: converting for-loops into while-loops
body: <p>Convert the for-loop in the following script to a while-loop.</p>
  
  <pre><code>echo "Enter a number"
  read n
  count=0
  for((i=1; i &lt;= n; i++))
  do
      echo "Enter a number"
      read a
      if((a &gt; 0))
         then
         count=$((count+1))
      fi
  done
  echo "You entered $count positive number(s)"
  </code></pre>
  
  <p>my try:</p>
  
  <pre><code>while (i&lt;=n)
  echo "Enter a number"
  read a
  if ((a&gt;0))
      then
      count=$((count+1))
  i++
  </code></pre>
  
  <p>i dont know if i fully understand while and for loops. Thanks for your help ^_^</p>