Create while loop

This commit is contained in:
Ankam Ravi Kumar
2018-05-17 14:45:14 +05:30
committed by GitHub
parent 2f3a2773fb
commit 44928e22bb

15
while loop Normal file
View File

@ -0,0 +1,15 @@
While Loop Example, print any given number table.
#!/bin/bash
## While Loop Example with 2 table
echo -e "Please provide one value:\c"
read -r c
i=1
while [ $i -le 10 ]
do
b=`expr $c \* $i`
echo "$c * $i = $b"
i=`expr $i + 1`
done
See Full Explanation of this above shell script [while loop](https://www.youtube.com/Techarkit?sub_confirmation=1)