How to extract digits in java from a number
Answers
Answered by
2
Hey digits of a number in java are extracted using % (modulus) operator.
This is how digits are extracted in java.
If you have any doubt pls leave a comment.
// denotes comments in java don't think that it is a code of the program.
Comments are simply used to increase the understandability of the program.
This is how digits are extracted in java.
If you have any doubt pls leave a comment.
// denotes comments in java don't think that it is a code of the program.
Comments are simply used to increase the understandability of the program.
Attachments:
sophiamanojbihpcxi43:
ya
Similar questions
English,
7 months ago
Physics,
7 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Chemistry,
1 year ago