Computer Science, asked by vaibshu1110, 3 months ago

write a Java program to input n numbers in an array and print only prime number. using scanner ​

Answers

Answered by itzbangtanarmy7
8

Answer:

Prime Number Program in Java (Another way)

  • import java.util.Scanner;
  • import java.util.Scanner;
  • public class PrimeExample3 {
  • public static void main(String[] args) {
  • Scanner s = new Scanner(System.in);

Similar questions