Your task is to use for loops to display only odd natural numbers from 1 to 99.
Input Format
There is no input.
Constraints
-
Output Format
1
3
5
.
.
.
.
.
99
answer:
#!/bin/bash
for((i=1;i<100;i++))do
if [ $((i%2)) -ne 0 ];then
echo $i
fi
done