Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Loops-Do-while/UNIX-Shell/loops-do-while-1.sh
Normal file
5
Task/Loops-Do-while/UNIX-Shell/loops-do-while-1.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
val=0
|
||||
while true; do
|
||||
echo $((++val))
|
||||
[ $((val%6)) -eq 0 ] && break
|
||||
done
|
||||
6
Task/Loops-Do-while/UNIX-Shell/loops-do-while-2.sh
Normal file
6
Task/Loops-Do-while/UNIX-Shell/loops-do-while-2.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
val=0
|
||||
while true; do
|
||||
val=`expr $val + 1`
|
||||
echo $val
|
||||
expr $val % 6 = 0 >/dev/null && break
|
||||
done
|
||||
4
Task/Loops-Do-while/UNIX-Shell/loops-do-while-3.sh
Normal file
4
Task/Loops-Do-while/UNIX-Shell/loops-do-while-3.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
for ((val=1;;val++)) {
|
||||
print $val
|
||||
(( val % 6 )) || break
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue