write a program in Java to accept a number from the user and calculate the product of its Prime digits
Answers
Answered by
1
Explanation:
first of all create a method for isprime to check a number is prime or not now in main method we accept a number and that the digit from last and check it is prime or not using isPrime method
Similar questions