Flaron

Számjegyek_2

Jul 5th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. package garbage;
  2.  
  3. public class Garbage {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. int n = 63534876;
  8. int length = Integer.toString(n).length();
  9.  
  10. int counter = 10;
  11. for (int i = 0; i < length; i++) {
  12. System.out.println((n%counter)/(counter/10));
  13. counter = counter*10;
  14. }
  15. }
  16. }
Add Comment
Please, Sign In to add comment