“kasus dalam ikan” Kode Jawaban

kasus dalam ikan

switch $animal
    case cat
        echo evil
    case wolf dog human moose dolphin whale
        echo mammal
    case duck goose albatross
        echo bird
    case shark trout stingray
        echo fish
    # Note that the next case has a wildcard which is quoted
    case '*'
        echo I have no idea what a $animal is
end
Tame Tern

kasus dalam ikan

switch VALUE
   [case [GLOB ...]
       [COMMAND ...]]
end
Tame Tern

Jawaban yang mirip dengan “kasus dalam ikan”

Pertanyaan yang mirip dengan “kasus dalam ikan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya