#include<stdio.h>
int main()
{
int length,width,x,y;//x horizotal axis;y vertical axis
printf(“Enter the length:”);
scanf("%d",&length);
printf(“Enter the width:”);
scanf("%d",&width);
//for(x=1;x<=length;x++) printf("\033[33;31;6m■\033[0m");
printf("\n");
for(y=1;y<=width;y++)
if (y1||ywidth) {{ for(x=1;x<=length;x++) printf("\033[33;32;6m■\033[0m");}printf("\n"); }
else { for(x=1;x<=length;x++)
{if(x1||xlength) printf("\033[33;34;6m■\033[0m");
else printf("\033[33;33;6m■\033[0m");
}
printf("\n");
}
printf("\n");
return(0);
}