c – matrix and pointers

I have a matrix consisting of 5 variables where the values ​​are always 4.5, and that at the end it forms numbers from 44444 to 55555 in ascending order
Program[0]= i program[1]J =
Program[2]= k program[3]= w
Program[4]= h
but I do not know what is the same, that is, leaving the 4 would not leave the 40 and nor the 400, of this type 00000-00004-00005-00044-00045-00055-00404

I did and refiz the following function, but it does not work, someone can help
* int Repeats (int matrix[20000][4], int i) {
int a, b;
while (a <i-1) {
while (a)