First loop - say i - for each line so it runs from 0 to n-1
Inside this loop
{
First loop - j - goes from i to (2*i - 1) - print each j
Second loop (not nested in the j loop above) - j - goes from (2*i - 2) to i (backwards)
}

Once you get this working, add one more loop before the First loop j to add spaces.

First loop - say i - for each line so it runs from 0 to n-1
Inside this loop
{
First loop - j - goes from i to (2*i - 1) - print each j
Second loop (not nested in the j loop above) - j - goes from (2*i - 2) to i (backwards)
}

Once you get this working, add one more loop before the First loop j to add spaces.

First loop - say i - for each line so it runs from 0 to n-1
Inside this loop
{
First loop - j - goes from i to (2*i - 1) - print each j
Second loop (not nested in the j loop above) - j - goes from (2*i - 2) to i (backwards)
}

I am really curious? Is what you wrote actually what you think I wrote? Could you explain, please, how you translated my info? It makes no sense to me.

Also it would be a lot helpful if you start the first loop from 1 and go to n (instead of 0 to n-1), to denote the starting number for each line, and thereby changing the condition of the first internal loop to j<=2*i-1.

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...