Skip to content

Commit

Permalink
Continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Prateek Bhaisora authored and Prateek Bhaisora committed Jan 24, 2024
1 parent 0e63fdf commit beb4595
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 28_continue.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Program to print only odd numbers using continue

for i in {1..10}
do
let rem=$i%2
if [[ rem -eq 0 ]]
then
continue
fi
echo "Odd number is: $i"
done

0 comments on commit beb4595

Please sign in to comment.