How do I end a program when a condition is met using only if-else-elseif statements?
이전 댓글 표시
I’m making a program where I need to have the program stop asking questions if an invalid input is entered by the user. How would I do this using only if-elseif-else statements, not using commands like return or break?
댓글 수: 2
Rik
2019년 9월 9일
Why are you limiting yourself? Is this homework? Using keywords like return and break will make code much more readable and compact.
Sam Jenkins
2019년 9월 9일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!