In this program, you will learn to check whether a given integer number is prime or not. This is done using a for loop or while loop in Java.
Check Prime Number using a while loop
When you run the program, the output will be:
13 is a prime number.
Check Prime Number using a for loop
When you run the program, the output will be:
13 is a prime number.
Post a Comment
Thank you for vising