Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- Scanner in = new Scanner(System.in);
- while(in.hasNextLong())
- {
- long a = in.nextLong();
- long b = in.nextLong();
- System.out.println(Math.abs(a-b));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement