Question: java ( begginer ) i need a function that checks whether a integer is a prime number or not . use break to break out

java ( begginer )
i need a function that checks whether a integer is a prime number or not . use break to break out of the loop
using the code below
java ( begginer ) i need a function that checks whether a

60 3 import java.util.Scanner; 4 public class NestedLoops 5 public static void main(String[] args) { 27 // TODO Auto-generated method stub 8 9 Scanner inp -new Scanner(System.in); 10 11 System.out.print("Please enter a number greater than 1: "); 12 13 int number - inp.nextInt(); 14 15 displayMultTable number ) 16 17 18 for(int 1 - -2; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!