C Nested For Loop Issue Help Needed Stack Overflow

C Nested For Loop Issue Help Needed Stack Overflow