Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-kumaresan committed Apr 18, 2022
1 parent 3402158 commit 8ea1979
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Logical-operators/AND.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

# read -p "Enter Age : " age
# if [ "$age" -gt 18 ] && [ "$age" -lt 30 ]
# then
# then
# echo "vote"
# else
# echo "not vote"
# fi


# (or)


read -p "Enter Age : " age
if [ "$age" -gt 18 -a "$age" -lt 30 ]
then
Expand Down

0 comments on commit 8ea1979

Please sign in to comment.