supose theres an array SIZE X SIZE

the user enter coaordinate (a,b)

i want to put 9 in each coardinate on the 2 diagonals that including (a,b).

this is my try :

Code:////// diagonal I {/} //// // UP for(i=a-1, j=b+1; (0<=i)||(j<SIZE-b); i--,j++) board[i][j]=9; // DOWN for(i=a+1,j=b-1; (i<SIZE-b)||(0<=j); i++,j--) board[i][j]=9; ////// diagonal II {\} //// // UP for(i=a-1,j=b-1; ((0<=i)||(0<=j)); i--, j--) board[i][j]=9; // DOWN for(i=a+1,j=b+1; ((i<SIZE-1)||(j<SIZE-1)); i++, j++) board[i][j]=9;