Trying to get an answer for 'a' - while loop??
3 次查看(过去 30 天)
显示 更早的评论
a=0
while a<5
a = a + 2;
end
disp (a)
What is the answer for 'a'?
采纳的回答
Constantino Carlos Reyes-Aldasoro
2023-3-7
Run the code!
a=0
while a<5
a = a + 2;
end
disp (a)
1 个评论
John D'Errico
2023-3-7
编辑:John D'Errico
2023-3-7
Please, when something is this obviously a homework assignment, please do not just give the student the code to do their homework. It does not help the student. It does not help the site, as it just encourages this student to ask their homework questions with absolutely no effort made on their part. And that encourages other students to do the same.
If you want to offer some help to the student, try pushing them in the right direction. But make them do the work, as otherwise, they will just keep on posting their homework.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!