SHARE
TWEET

Untitled

a guest Sep 19th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. read -p "Wie gross bist du in cm? " x
  2. if [ $x -lt 150 ]
  3.     then echo "Du bist zu klein"
  4. elif [ $x -ge 150 ]
  5.     then read -p "Wie viel wiegst du in kg? " y
  6.          if [ $y -gt 30 ]
  7.              then x=$(( $x / 100 ))
  8.                   x=$(( $x * $x ))
  9.                   z=$(( $y / $x ))
  10.              else echo "Das ist keine Zahl oder du wiegst zu wenig"
  11.          fi
  12.     else echo "Das ist keine Zahl"
  13. fi
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top