Shell - Print even numbers from 1 to 10 Get link Facebook X Pinterest Email Other Apps - June 09, 2021 Shell - Print even numbers from 1 to 10 CODE i=1 while [ $i -le 10 ] do if [ `expr $i % 2` == 0 ] then echo $i fi i=$(($i+1)) done Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment