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

1 vue (au cours des 30 derniers jours)
Abdul Manan
Abdul Manan le 23 Juin 2020
for x=0:2:50
disp(x);
end

Réponses (1)

Mohammad Sami
Mohammad Sami le 23 Juin 2020
x = 0;
while x <= 50
disp(x);
x = x + 2;
end

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by