<< then Control flow Configuration >>

Ajuda do Scilab >> Scilab > Control flow > while

while

palavra-chave da estrutura while (significa "enquanto...")

Descrição

while . Deve ser terminado por "end"

while expressão ,instruções1,...[,else instruções], end

while expressão do instruções1,...[,else instruções], end

while expressão then instruções1,...[,else instruções], end

Notas:

Aviso: o número de caracateres usados para definir o corpo de qualquer estrutura condicional (if while for ou select/case) deve ser limitado a 16k.

Exemplos

e=1; a=1; k=1;
while norm(a-(a+e),1) > %eps, 
    e=e/2; 
    k=k+1; 
end
e,k

Ver Também


Report an issue
<< then Control flow Configuration >>