Front and Back of a Loop
Here's the best example I can give:
1 2 3 4 5 6 7 8 9
|
int x = 360;
for(int i=0; i<=x; i++)
{
// Formulas to retrieve data.
if(i<=8)
{
// Retrieves all data for just 1-8.
}
}
|
The idea is that I'm finding data for a loan over 30 years (360 months).
I need to be able to find the data for the first 8 and back 8 months. I do not have any clue how to find the back 8.
Thanks in advance!
Last edited on
Topic archived. No new replies allowed.