C# filter results quarterly
        Posted  
        
            by user339067
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user339067
        
        
        
        Published on 2010-06-15T15:26:24Z
        Indexed on 
            2010/06/15
            16:12 UTC
        
        
        Read the original article
        Hit count: 257
        
Hello!
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?
Please help!
© Stack Overflow or respective owner