# For- loop which can reuse updated values [closed]

Eout = E^x ;
For[kz = 1, kz < 4, kz++,
Print[Eout1[kz] = Eout];
Print[kz]]


The output is

E^x
1
E^x
2
E^x
3


But what I want to have is

E^x
1
E^x.E^x
2
E^x.E^x.E^x
3


Is it possible to get the desired output by using Table or a loop with Do or While?

## closed as off-topic by rhermans, AccidentalFourierTransform, gwr, Henrik Schumacher, Alex TrounevJul 15 at 15:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – rhermans, gwr, Henrik Schumacher, Alex Trounev
If this question can be reworded to fit the rules in the help center, please edit the question.

• Have you seen the Mathematica function called Nest? Also NestList Would that solve your problem? Try NestList[Times[Exp[x], #] &, E0, 5] – rhermans Jul 12 at 13:00
• Fold and FoldList could also be of interest here, in case the second argument $e^x$ changes from one step to the next. Because multiplying repeatedly by the same factor can be abbreviated by a power construct: $e^x\cdot e^x=e^{2x}$ etc. very generally, even if $x$ is a matrix. – Roman Jul 12 at 13:12