title: shell script for multiplication table
body: <p>This is my code </p>
  
  <h3>mul.sh</h3>
  
  <pre><code>echo "multiplication table"
  echo "enter number"
  read n
  m=0
  for((j=1;j&lt;=12;j++))
  do
  echo -n -e " $j\t"
  done
  echo ""
  echo 
  for((i=1;i&lt;=n;i++))
  do
  for((k=1;k&lt;=12;k++))
  do
  m=` expr $k \* $i `
  echo -n -e " $m\t"
  done
  echo ""
  done
  </code></pre>
  
  <p>When I run this I got:</p>
  
  <p>malathy@malathy:~/Desktop/fosslab/20084664/shell$ sh matrix.sh</p>
  
  <p>multiplication table</p>
  
  <p>enter number</p>
  
  <p>2</p>
  
  <p>matrix.sh: 5: Syntax error: Bad for loop variable</p>
  
  <p>Can anyone help me to solve this?</p>