Skip to content

Commit 92439bf

Browse files
Update while-loop.sh
1 parent b8003a2 commit 92439bf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

while-loop.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
While Loop Example, print any given number table.
2-
31
#!/bin/bash
4-
## While Loop Example with 2 table
5-
echo -e "Please provide one value:\c"
2+
# While Loop Example with 2 table, print any given number table.
3+
# See Full Explanation of this above shell script [while loop](https://www.youtube.com/Techarkit?sub_confirmation=1)
4+
5+
#START
6+
7+
echo -e "Please provide one value: \c"
68
read -r c
79
i=1
810
while [ $i -le 10 ]
@@ -12,4 +14,4 @@ echo "$c * $i = $b"
1214
i=`expr $i + 1`
1315
done
1416

15-
See Full Explanation of this above shell script [while loop](https://www.youtube.com/Techarkit?sub_confirmation=1)
17+
#END

0 commit comments

Comments
 (0)