Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 6th, 2020 178 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. echo "Welcome to Guess the Age!"
  4.  
  5. randomage=$(shuf -i 20-70 -n 1)
  6. echo $age
  7.  
  8. read -p "Please input an age between 20 and 70: " guess
  9.  
  10. while read $guess;
  11. do
  12.     if [ $guess -eq $randomage ];
  13.         then
  14.         break;
  15.  
  16.     else
  17.         echo
  18.         if [ $guess -gt $randomeage ];
  19.             then
  20.             echo -n "Too high"
  21.         elif [ $guess -lt $randomage ];
  22.             then
  23.             echo -n "Too low"
  24.         fi
  25.        
  26.     fi
  27.  
  28. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top