Question: Matlab to Maple

Hello, i'm new in maple and i don't know how to programming in it. i need to write two For loop in maple to make a matrix. i can write it simply in Matlab as:

x = [1 2 3 4];
for i=1:4
for j=1:4
k(i,j) = x(i)+x(j);
end
end
can you please Help me to find out how to write this code in maple
Regards
Please Wait...