I need to increment a number so it starts at 10 then 40 then 90, 160 and so on the math behind it is always adding +20 to the difference before hand 10-40 = 30 + 20 = 50 + 40 = (90).

I have some code but dont know how to do this kind of incrementing calculation? :S

for (int I = 0; I <= 4000;) { I = I (calculation needed); Console.WriteLine(I); Console.ReadLine();

This post has been edited by **Sparukus**: 16 October 2010 - 06:00 AM