Write a complete MATLAB program using while loop that will take a number from user as input and display whether the number is a prime or not. Your program should be able to handle invalid inputs.
이전 댓글 표시
A prime number is defined as a positive integer that is divisible by 1 and that number only. For example: 11 is a prime number as it is divisible by 1 and 11 only
댓글 수: 1
Md. Sajidul Islam Plabon
2020년 11월 29일
give the answer
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Discrete Math에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!