8.10 The chapter test



Let's write the shell script which carries out the next function.

  1. It prompts age's input.

  2. If input value is greater than 20 or is 20, it displays 'you can drink'.

  3. If input value is less than 20, it displays 'you cannot drink'.


Previous Next