Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- read -p "Wie gross bist du in cm? " x
- if [ $x -lt 150 ]
- then echo "Du bist zu klein"
- elif [ $x -ge 150 ]
- then read -p "Wie viel wiegst du in kg? " y
- if [ $y -gt 30 ]
- then x=$(( $x / 100 ))
- x=$(( $x * $x ))
- z=$(( $y / $x ))
- else echo "Das ist keine Zahl oder du wiegst zu wenig"
- fi
- else echo "Das ist keine Zahl"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement