Problem Statement:
Print numeric value 0000-9999# use for loop
#!/bin/ksh
for i in {0..9999}
do
s=$(printf "%04d" $i)
echo "for $s times"
done
# use while loop
#!/bin/ksh
i=0
while [[ $i -le 9999 ]]
do
s=$(printf "%04d" $i)
echo "while $s times"
((i = i + 1))
done