Lab 10: Program to find the multiplication table of a given number

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

No comments

Powered by Blogger.