Q. Print the rectangle pattern program in C as following design:
1111111
1222221
1233321
1234321
1233321
1222221
1111111
Ans.
1111111
1222221
1233321
1234321
1233321
1222221
1111111
/* source code for print the rectangle pattern program*/
#include<stdio.h>
int main()
{
1111111
1222221
1233321
1234321
1233321
1222221
1111111
Ans.
1111111
1222221
1233321
1234321
1233321
1222221
1111111
Tips/Tricks: Each color group represent a loop in rectangle pattern program as the below source code written.
/* source code for print the rectangle pattern program*/
#include<stdio.h>
int main()
{