tc = int(raw_input())while tc > 0: tc = tc - 1 a, b = map(int, raw_input().split()) print abs(a-b)
2 2 9 11 13
7 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!