I am using two For loops. When the inner loop finishes, I don't want to print but I want to store the result from the inner loop in some variable so that I can call that variable in the future. That result will come in the form of a list.

For example, in the 1st iteration,it is returning some value, e.g. {2,4}.
in the 2nd iteration,it is returning {3,4}.

But I don't want to print them every time. I want some variable to store {{2,4},{3,4}}.
How to do that?

Not only should you post a code sample, but since there is a high probability that a method better than For loops exists for your problem please also explain the context of the code.
–
Mr.Wizard♦Aug 15 '12 at 11:41

1

Usually, one could use AppendTo[] or the combination of Sow[]/Reap[], but without something more concrete, we can't be more helpful.
–
Ｊ. Ｍ.Aug 15 '12 at 11:43

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.