Updated "correct code" block logic to match the "problematic code" block. One was indexing from 0 and the other from 1.

scottdcoulter
2022-03-28 09:39:55 -04:00
parent 7b7b2538e0
commit ae023e2174

@@ -12,7 +12,7 @@ done
### Correct code: ### Correct code:
```bash ```bash
for ((i=0; i<n; i++)) for ((i=1; i <= n; i++))
do do
echo "$i" echo "$i"
done done