Write a program in java to accept a number and find the sum of the digits. The program also checks whether the sum of the digits is a prime number or not and displays an appropriate message.
Sample Input: 458
Sample Output: The sum of the digit = 17
Answers
Answered by
1
Answer:
458 is not a prime number
Similar questions