RosettaCodeData/Task/Loops-Continue/UNIX-Shell/loops-continue-1.sh

11 lines
152 B
Bash
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Z=1
while (( Z<=10 )); do
echo -e "$Z\c"
if (( Z % 5 != 0 )); then
echo -e ", \c"
else
echo -e ""
fi
(( Z++ ))
done