mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-07-31 21:09:32 +00:00
17 lines
343 B
Bash
17 lines
343 B
Bash
#!/bin/bash
|
|
# While Loop Example with 2 table, print any given number table.
|
|
# See Full Explanation of this above shell script [while loop](https://www.youtube.com/Techarkit?sub_confirmation=1)
|
|
|
|
#START
|
|
|
|
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
|
|
|
|
#END |