using a for loop

1 visualización (últimos 30 días)
Ravi Jayasuriya
Ravi Jayasuriya el 14 de Mzo. de 2020
Comentada: Ravi Jayasuriya el 14 de Mzo. de 2020
Write a small programme, using a for loop and the disp() command, to display the value of the loop variable each time you go through the loop, where the loop variable goes from 5 to 17 inclusive.
any help :(
i'm new to matlab and to all this.
  3 comentarios
Ravi Jayasuriya
Ravi Jayasuriya el 14 de Mzo. de 2020
yes, i think i got it.. heheh
for x= 5:17;
disp(factorial(x));
end
Ravi Jayasuriya
Ravi Jayasuriya el 14 de Mzo. de 2020
thanks for help.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by