10 dim x(50,50) : dim y(50,50) : dim z(50,50) : dim w(50,50)
20 print "somma di due tabelle con M righe e N colonne"
30 input "introduci M (e 'a capo'), poi N "; M, N
40 for i=1 to M: for j=1 to N : print "x("; i; "," ; j; ")= "; : input x(i,j): next:next
50 for i=1 to M: for j=1 to N : print "y("; i; "," ; j; ")= "; : input y(i,j): next:next
60 print "x =" : for i=1 to M: for j=1 to N : print x(i,j);"   "; : next : print : next
70 print "y =" : for i=1 to M: for j=1 to N : print y(i,j);"   ";: next : print : next
80 for i=1 to M: for j=1 to N : z(i,j)=x(i,j)+y(i,j): next : next
90 print "x+y =" : for i=1 to M: for j=1 to N : print z(i,j);"   "; : next : print: next
100 goto 30