Write a C program to print the given box number pattern with 1’s and 0’s using loop. How to print box number pattern using one’s and zero’s using for loop in C programming. Logic to print box number pattern with 1’s as border and 0’s at center in C program.
Example
Input
Input rows: 5 Input columns: 5
Output
11111 10001 10001 10001 11111