Finding data in a 2d array

I'm working on an assignment that requires us to display a 2d array of monthly temperatures for four years...so the array declaration will look something like this: double temp[year][month]. This part i'm okay with and have completed.

After that, we're suppose to display temperatures based on user choice and input. For example if the user wants to find the temperature in January for the year 2009, the program will then go through the array and find the temperature. This is where i'm stuck and can't seem to figure out.

I'm not looking for someone to write the code, just need an explanation of how i can go about this, preferably using a loop.

Thanks.

Topic archived. No new replies allowed.