Advertisement
atanasovetr

BashExercise1

Jun 2nd, 2021
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $1 -lt $2 ]; then
  4.     if [ $1 -lt $3 ]; then
  5.         echo $1
  6.     else
  7.         echo $3
  8.     fi
  9. else
  10.     echo $2
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement