Header Ads Widget

Ticker

6/recent/ticker-posts

Write a shell script to display multiplication table of given number

 echo "Enter Number to Generate Multiplication Table"

read -p "Enter the number : " number
echo "***********************"
i=1
while [ $i -le 10 ]
do
echo " $number * $i =`expr $number \* $i ` "
i=`expr $i + 1`
done
echo "***********************"

Post a Comment

0 Comments