1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import java.util.Scanner; /** * UVA10055 */ public class UVA10055 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { long n1 = sc.nextLong(), n2 = sc.nextLong(); System.out.println(Math.abs(n1 - n2)); } sc.close(); } } |