BASIC

10 x = 10 20 y = 2 40 print "X+Y=" 50 print x+y
10 x = 0 20 for i = 1 to 10 30 x = x + i 40 next 50 print x