input "Table size: ", k print "Addition table:" for i = 0 to k for j = 0 to k print i+j; next print next print "Multiplication table:" for i = 1 to k for j = 1 to k print i * j; next print next