Programming Tutorials

Comment on Tutorial - for loop in Linux Shell Script By Dorris



Comment Added by : ashish

Comment Added at : 2011-03-25 07:46:09

Comment on Tutorial : for loop in Linux Shell Script By Dorris
#!/bin/bash

echo "Enter number for table :"
read x


for i in 1 2 3 4 5 6 7 8 9 10
do
c=$(( $x * $i ))
echo "$x * $i = $c"
done


View Tutorial