WAP to accept a number and display whether it is greater than 100 or not (using Scanner class and void display only).
Answers
Answered by
1
The number which is only divisible by itself and 1 is known as prime number. whether the entered number is prime or not then see: Java Program to check class PrimeNumbers { public static void main (String[] args) { int i =0; int num =0; void main (String[] args) { Scanner scanner = new Scanner(System.in); int i =0;
Similar questions