How can i make normal output in c

Viewed 39
int main() {
    int array[5][5] = {
        {99, 22, 73 ,46, 12}, 
        {14, 85, 86, 58, 61},
        {95,  3, 78, 79, 49},
        {45, 96, 47, 81, 83},
        {82,  8, 12, 36, 27}
    };

    int m = 0;
    int n = 0;
    int k = 0;

    while(*(*(array + m) + n) != 61) {
        /* 
          put your codes.
        */
    }
    printf("You just passed Path 1\n");

    while(*(*array + k) != 79) {
        /* 
          put your codes.
        */
    }`enter code here
    printf("Success!\n");
    
    return 0;
} 

enter image description here im in this situation

and i need to change variable m, n, k for going to this result

enter image description here

in this homework, i can change only variable m, n, k

if you can't understand, please notice it before 1hours, i lost my account bc of my shit question please.. really im in trouble.. i will fix it

0 Answers
Related