I am not going to do all the work for you but I will give you a hint. I think your for loops are a bit off.
#include <stdio.h>
#define Rows 4
#define Cols 5
int main()
{
int A[Rows][Cols] =
{
{ -1, -2, -3, -4, -5 },
{ -6 },
{ -11 },
{ -16 }
};
int i,j;
printf( "j= " );
for( j = 0; j < Cols; j++ )
printf( " %d", j + 1 );
printf( "\n" );
printf( "----+----------------\n" );
for( i = 1; i < Rows; i++ )
{
}
return 0;
}
That code will display the first two rows. I will leave the rest for you. Read the documentation for the printf function and its format specifiers and you should be able to figure out the rest of this.