Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Solver {
- public static void main(String[] args) {
- Scanner cin = new Scanner(System.in);
- long a,b;
- while(cin.hasNext())
- {
- a=cin.nextLong();
- b=cin.nextLong();
- System.out.println((a>b)? a-b : b-a);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement