Long in short it is a Vandermonde matrix and I have a problem to run a for in the second dimension of the array.
'add meg M-et majd N-et (enter kozotte)(az 1. sor az 1-es szam hatvanyai)' displayNl.
M := stdin nextLine asInteger.
N := stdin nextLine asInteger.
|tomb|
tomb := Array new: M.
x := 1.
y := 1.
a := M + 1.
b := N + 1.
x to: a do: [ :i|
  tomb at:x put: (Array new: N) y to: b do: [ :j |
    x at: y put: (x raisedTo: y - 1) ] ].
tomb printNl.
 
                        
Here is a good way to create a matrix for which we have an expression of the generic entry
aij:With the above method you can now implement
EDIT
I just realized that in Pharo there is a way to create a matrix from the expression of its
aij, it is namedrows:columns:tabulate:, so my answer reduces to: