Advertisement
Qpel

Untitled

Nov 23rd, 2016
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Iveskite a b c d e, norint iseiti is menu - 0"
  3. read a
  4.  
  5. if [ $a == "a" ]
  6. then
  7.     for ((i=1; i<=5; i++))
  8.     do
  9.         for ((j=0; j<i; j++))
  10.         do
  11.         printf $i
  12.         done
  13.         echo " "
  14.     done
  15. elif [ $a == "b" ]
  16. then
  17.     for ((i=1; i<=5; i++))
  18.     do
  19.     b=$b$i
  20.     echo $b
  21.     done
  22. elif [ $a == "c" ]
  23. then
  24.     for ((i=1; i<=5; i++))
  25.     do
  26.     c+="|"
  27.     printf $c
  28.     echo "_"
  29.     done
  30. elif [ $a == "d" ]
  31. then
  32.     for ((i=1; i<=5; i++))
  33.     do
  34.     d+="*"
  35.     echo $d
  36.     done
  37. elif [ $a == "e" ]
  38. then
  39.     for ((i=1; i<=5; i++))
  40.     do
  41.     e+="*"
  42.     echo $e
  43.     done
  44.     for ((i=1; i<=5; i++))
  45.     do
  46.     e-="*"
  47.     echo $e
  48.     done
  49. elif [ $a == "0" ]
  50. then
  51.     printf ""
  52. else
  53.     echo "KLAIDA"
  54. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement