Monday 16 January 2012

#program to print table from 1 to 10


i=1
 while [ $i -lt 11 ]
 do
  j=1;
  echo "Table of $i is given below:-"
  while [ $j -lt 11 ]
  do
   mul=`expr $i \* $j`
   echo "$i * $j = $mul"
   j=`expr $j + 1`
  done
  i=`expr $i + 1`
 done

No comments:

Post a Comment