Question: Simple code using for loop in java please You will write a program that will determine whether a number Is a prime number. Allow the
You will write a program that will determine whether a number Is a prime number. Allow the user to enter a number, and display a message depending on whether or not it is prime. The user should be allowed to keep entering numbers until they enter "-1" to quit. Look at Chapter 5, Section 5.11 for some examples working with Prime Numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
