Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Iveskite a b c d e, norint iseiti is menu - 0"
- read a
- if [ $a == "a" ]
- then
- for ((i=1; i<=5; i++))
- do
- for ((j=0; j<i; j++))
- do
- printf $i
- done
- echo " "
- done
- elif [ $a == "b" ]
- then
- for ((i=1; i<=5; i++))
- do
- b=$b$i
- echo $b
- done
- elif [ $a == "c" ]
- then
- for ((i=1; i<=5; i++))
- do
- c+="|"
- printf $c
- echo "_"
- done
- elif [ $a == "d" ]
- then
- for ((i=1; i<=5; i++))
- do
- d+="*"
- echo $d
- done
- elif [ $a == "e" ]
- then
- for ((i=1; i<=5; i++))
- do
- e+="*"
- echo $e
- done
- for ((i=1; i<=5; i++))
- do
- e-="*"
- echo $e
- done
- elif [ $a == "0" ]
- then
- printf ""
- else
- echo "KLAIDA"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement