Thursday, 2 April 2015

write a shell script program to generate multiplication table

write a shell script program to generate multiplication table


clear
  echo "which number to generate multiplication table"
  read number
  i=1
  while [ $i -le 10 ]
  do
  echo " $number * $i =`expr $number \* $i ` "
  i=`expr $i + 1`
  done





output




2 comments: