Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Loops-Continue/UNIX-Shell/loops-continue-1.sh
Normal file
10
Task/Loops-Continue/UNIX-Shell/loops-continue-1.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Z=1
|
||||
while (( Z<=10 )); do
|
||||
echo -e "$Z\c"
|
||||
if (( Z % 5 != 0 )); then
|
||||
echo -e ", \c"
|
||||
else
|
||||
echo -e ""
|
||||
fi
|
||||
(( Z++ ))
|
||||
done
|
||||
8
Task/Loops-Continue/UNIX-Shell/loops-continue-2.sh
Normal file
8
Task/Loops-Continue/UNIX-Shell/loops-continue-2.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
for ((i=1;i<=10;i++)); do
|
||||
echo -n $i
|
||||
if [ $((i%5)) -eq 0 ]; then
|
||||
echo
|
||||
continue
|
||||
fi
|
||||
echo -n ", "
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue