Bash

While Loop

Loop on condition.

💡 THINK OF IT LIKE…
▸ YOUR TURN

Write: while [ $x -gt 0 ]; do x=$((x-1)); done

while.bash
+110 XP
Tab indent · Shift+Tab outdent · ⌘/Ctrl + Enter submit · auto-pairs ( [ { " '