Advertisement
Guest User

final_project.sh

a guest
Oct 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #! /bin/bash
  2. if [ "$NUM" -lt 5 ]; then
  3.     echo "The number is less than 5"
  4. elif [ "$NUM" -lt 10 ]; then
  5.     echo "The number is between 5-9"
  6. elif [ "$NUM" -lt 21 ]; then
  7.     echo "The number is between 10-20"
  8. else
  9.     echo "The number is greater than 20"
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement