Write a C program to print the given box number pattern of 1 with 0 center using loop. How to print box number pattern of 1’s with 0 as center using for loop in C programming. Logic to print box number pattern with different center using for loop in C program.
Example
Input
Input rows: 5 Input columns: 5
Output
11111 11111 11011 11111 11111