Accept a number to check if it is a special digit number is
such that when the sum of the digits is added to the
product of its digits, the result is equal to the orignial two
digit number show the message "special number"
otherwise show the message "not a special number"
Answers
Answered by
0
Answer:
{
System.out.println("The sum of factorial of digits ="+s);
System. out.println(n+"is a special number");
}
else
{
System.out println("The sum of factorial of digits ="+s);
System.out.println(n+"is not a special number");
}
}
}
here's your sample dear!
Attachments:
Similar questions