I am a beginner and I am using Visual Studio 2008.
My code is good and output is:
Day 1, "Enter Temperature 1:
Day 1, "Enter Temperature 2: and so on until Day 7.
What I want it to read is:
Day 1, "Enter High Temerature 1: (for column [0])
Day 1, "Enter Low Temerature 2: (for column [1])
I have tried several scenarios for cout<<, but I can't seem to get it right. It is OK the way it is, but would be optimal if I could get it to display the "High" and "Low" for each column. Again, any help is greatly appreciated.
int main ()
{
//declare and intilize array
int tempav[7][2]= {0};
int tot = 0;
int average = 0;
//enter data into array
for(int day = 0; day < 7; day ++)
for (int temps = 0; temps < 2; temps ++)
{
cout<<"Day Number "<<day +1 << ", Temperature " << temps + 1 << ": ";
cin>> tempav[day][temps];
}//end for