Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. public class Task2 {
  2.  
  3. public static void main(String[] args) {
  4.  
  5.  
  6. int a = 123456;
  7. int b = ((a-(a%10))/10)%10;
  8. System.out.println(b);
  9.  
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement