filter results quarterly
- by user339067
I am writing a simple C# application that is handling bank savings.
I want to be able to show the results on either, yearly, monthly or quarterly basic how can this be done? How can I loop through a set of results and only show every third post (if I am using quarterly) for example.
In Python I can use range(1,31,3) but how is it done in C#?
UPDATE 1
I want to loop 12 times (annually) and calculate the interest each loop but I only want to print the results every third loop (quarterly). How can I achieve this?