fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4.  
  5. class Task1
  6. {
  7. public static void main (String[] args)
  8. {
  9. int a=0;
  10. Scanner in = new Scanner(System.in);
  11. a = in.nextInt();
  12. if (a<0)
  13. {
  14. a=-a;
  15. }
  16. System.out.println(a/100);
  17. System.out.println((a/10)%10);
  18. System.out.println(a%10);
  19.  
  20. }
  21. }
Success #stdin #stdout 0.07s 4386816KB
stdin
-173
stdout
1
7
3