Answers for "linux for loop 1 to 100 odd"

0

linux for loop 1 to 100 odd

for i in {1..99}
do
        rem=$(($i % 2))
        if [ "$rem" -ne "0" ]; then
                echo $i
        fi
done
Posted by: Guest on August-11-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language