2 dimensional arrays in C
I am trying to do some C problems I found and this one has me stuck. I have a 10x10 two dimensional array with every element equaling zero. So it looks like this:

    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0

I need to set the top triangle to be 1's. So it would look like this:

    1 1 1 1 1 1 1 1 1 1
    0 1 1 1 1 1 1 1 1 0
    0 0 1 1 1 1 1 1 0 0
    0 0 0 1 1 1 1 0 0 0
    0 0 0 0 1 1 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0

How would I do this besides going in and manually going arr[0][0] = 1 arr[0][1] = 1 arr[0][2] = 1 so on...
2 dimensional arrays in C
===

I am trying to do some C problems I found and this one has me stuck. I have a 10x10 two dimensional array with every element equaling zero. So it looks like this:

    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0

I need to set the top triangle to be 1's. So it would look like this:

    1 1 1 1 1 1 1 1 1 1
    0 1 1 1 1 1 1 1 1 0
    0 0 1 1 1 1 1 1 0 0
    0 0 0 1 1 1 1 0 0 0
    0 0 0 0 1 1 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0

How would I do this besides going in and manually going arr[0][0] = 1 arr[0][1] = 1 arr[0][2] = 1 so on...