How do I convert this for loop in to while loop with same sequence of number.

1 visualización (últimos 30 días)
for x=0:2:50
disp(x);
end

Respuestas (1)

Mohammad Sami
Mohammad Sami el 23 de Jun. de 2020
x = 0;
while x <= 50
disp(x);
x = x + 2;
end

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