Paste Search Dynamic
Recent pastes
is max
  1. #!/bin/bash
  2. # your code goes here
  3. echo enter three number
  4. read a
  5. read b
  6. read c
  7.  
  8. if [ $a -gt $b -a $a -gt $c ]
  9. then
  10.     echo  $a is max
  11.  
  12. elif [ $b -gt $a -a $b -gt $c ]
  13. then
  14.    echo $b is max
  15.  
  16. else
  17.    echo $c is max
  18. fi
Parsed in 0.001 seconds