python应该是最简单的了吧,直接上代码

while True:
    try:
        a = input()
        b = input()
        print(eval(a+"+"+b))
    except:
        break