Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
33 views
ubuntu2204
echo "Enter a number n Within range 5 to 20:"
read n

echo
echo "All numbers within range 1 to $n: "

count=1
while [ $count -le $n ]
do
    echo -en "$count\t"
    (( count++ ))
done

echo