Lately I've been kind of bored so instead of playing I've been entertaining myself by solving programming problems, one very easy this one.
Show the odd numbers from 1 until 99 using bash
code
for i in {1..99}
do
if(( $i % 2 != 0 ))
then
echo "$i"
fi
done
No comments:
Post a Comment