I have a table where I return the amounts paid per taxpayer monthly. But I need to create a subtotal field, adding up the values for each month. Much like the Fibonacci Sequence. The problem is that I need to look up to when the taxpayer made the payment. In this part I'm getting involved.
The data I currently have:
HowdoIneedthedatatoreturn:
I tried something like:
double a = 0;
double AnoContribuinte = 0;
for (int i = 0; i < 10; i++)
{
a = a + Contribuinte;
i++;
Console.WriteLine(a);
}
I just limit the i< 10
, and in fact I need to be equal to the amount of data the table has.
But in this way it goes into an loop infinite, since I
will always have some value.