while and for loop
조회 수: 2 (최근 30일)
이전 댓글 표시
Read 5 numbers from keyboard and then print odd and even numbers using while and for loop.
댓글 수: 0
답변 (1개)
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.
input("msg")
is useful. You can use it.
댓글 수: 1
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.
참고 항목
카테고리
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!