Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package garbage;
- public class Garbage {
- public static void main(String[] args) {
- int n = 63534876;
- int length = Integer.toString(n).length();
- int counter = 10;
- for (int i = 0; i < length; i++) {
- System.out.println((n%counter)/(counter/10));
- counter = counter*10;
- }
- }
- }
Add Comment
Please, Sign In to add comment