Define a class with methods to do the following:
to accept a 5 digit integer from the user, using Scanner class
Print error message if the number of digits are greater than or lesser than 5
Print the sum of cube of its digits
Answers
Answered by
1
Explanation:
hope this will help you
Attachments:
![](https://hi-static.z-dn.net/files/dbd/2efb8f24915b8daa27a976ace85d6a3b.jpg)
Similar questions