Question: java ( begginer ) i need a function that checks whether a integer is a prime number or not . use break to break out
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
Get step-by-step solutions from verified subject matter experts
