In: Computer Science
Write a program that asks the user for an integer. The program checks and prints to the screen whether the number is prime or not. For example, if user enters 17, the program should print “17 is prime”; if the user enters 20, the program should print “20 is not prime”.
please do it with a “ while Loop”,
Thanks..
Answer-
Your code is here-
screenshot of output-
Note- Please do upvote, if any problem then comment in box sure I will help.