Question: This code is supposed to give the maximum value of a secondary diagonal of this matrix

```
1  2  3  4
4  5  6  8
9 10 11 12

```

But it's giving an incorrect answer. There seems to be a slight error in it which I can't pinpoint.

```
#include<iostream>
using namespace std;
int main()
{

  int a[4][4] = {1,2,3,4,5,6,7,8,9,10,11,12};
  int max = a[0][3];
  cout<<"The matrix is:";

  for(int i = 0; i<4;i++)
  {
    cout<<"\n";
    for(int j=0; j<4; j++)
      cout<<a[i][j]<<" ";
  }

  for(int i = 0; i<4; i++)
  {
    for(int j=0;j<4-i-1;j++)
    {
      if(i+j==3)
      {
        if(max<a[i][j])
        {
          max = a[i][j];
        }
      }
    }
  }

  cout<<"maximum value in second diagonal:"<<max<<endl;

  system("pause");

  return 0;

}

```

I'd appreciate if someone could help.

Answer: 
I think I have found a solution whilst messing around.

I put a float and clear on the moo and it seems to have done the trick and is now wrapping round the content. I didn't think this would work for some reason but it seems to have done:

```
.moo { 
background:#f1f1f1;
padding:10px 10px 10px 15px;
margin-bottom:10px;
margin-top:10px;
white-space:nowrap;
float:left;
clear:both;
}

```

I still can't quite get my head around why this has worked
I would suggest adding: 

```
overflow-x: auto

```

to your `.moo` styles

This will make the moo container have it's own scrollbar - if this is what you want?