while and for loop

4 ビュー (過去 30 日間)
mat 2022 年 11 月 12 日
編集済み: Hiro Yoshino 2022 年 11 月 12 日
Read 5 numbers from keyboard and then print odd and even numbers using while and for loop.

回答 (1 件)

Hiro Yoshino
Hiro Yoshino 2022 年 11 月 12 日
編集済み: Hiro Yoshino 2022 年 11 月 12 日
Let me remove the original idea as I did not think it was a homework ... sorry.
is useful. You can use it.
  1 件のコメント
John D'Errico
John D'Errico 2022 年 11 月 12 日
@Hiro Please don't do obvious homework assignments for students. It does not help the student, nor does it help Answers. It teaches the student only that Answers is a place where they can get their homeework done for them, with no effiort made. It teaches other students they too can post their homework on Answers with no effort made, and that if one person is doing homework assignments for students with no effort shown, than they too can have their homework done for them.



Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by