Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2. Printf ‘please enter the grade out of 20: ’
  3. read inp
  4. Case $inp in
  5. 16<Inp<20)
  6.     Echo "very good."
  7.             ;;
  8. 14<Inp<16)
  9.      Echo "good."
  10.           ;;
  11. 12<Inp<14)
  12.     Echo "good enough."
  13.          ;;
  14. 10<Inp<12)
  15.     Echo "average."
  16.          ;;
  17. 0<Inp<10)
  18.    Echo "insufficient."
  19.          ;;
  20. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement