Answers for "Java Program to Print Prime Numbers from m to N using For Loop"

2

Java program to print prime numbers from 2 to n

// Java program to print prime numbers from 2 to n
import java.util.Scanner;
public class PrimeNumberFrom2Ton
{
   public static void main(String[] args) 
   {
      int loop, max;
      System.out.print("Please enter highest (maximum) number: ");
      Scanner sc = new Scanner(System.in);
      max = sc.nextInt();
      for(loop =
Posted by: Guest on February-19-2021

Code answers related to "Java Program to Print Prime Numbers from m to N using For Loop"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language