Run a dialog each time through a loop:
You can see the current value of the loop variable
i in the dialog:
Return from the first dialog.
x is multiplied by the current value of
i:
Return from the second dialog.
x is multiplied by the current value of
i squared:
Return from the third dialog: