set element = $argv[1] shift @ i = 1 while ($i <= $#argv) if ($argv[$i] == $element) then exit($i) else @ i++ endif end
- Monday
- December 23rd, 2024
- Ajouter un cours
set element = $argv[1] shift @ i = 1 while ($i <= $#argv) if ($argv[$i] == $element) then exit($i) else @ i++ endif end