i need to enter numbers in a row
and my program need to take them from right to left
(the last number in the row will be the first one in the matrix)
for input: 1 2 3 4 5 6 in 2X3 matrix
6 5 4
3 2 1
i tried to do this but its not workin
Code:for (index=rows;index>=0;index--){ for (kndex=cols;kndex>=0;kndex--){ scanf("%d",&matrix[index][kndex]); } }