write a Java program to input n numbers in an array and print only prime number. using scanner
Answers
Answered by
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