Make a Rectangle from a Triangle
Python 2, 59 bytes



n=input()
c=~n%2
while c&lt;n:print`n%10`*n+`c%10`*c;n-=1;c+=1


Try it online!

Prints like:

55555
44441
33322


It looks kind-of redundant to update n-=1;c+=1 where sum n+c remains unchanged. I feel like there's a better way, but I haven't seen it so far. Bounty is up for grabs!



60 bytes



n=input()
b=a=n/2
while n-b:b+=1;print`a%10`*a+`b%10`*b;a-=1


Try it online!

Prints like:

22333
14444
55555


Based on ideas by @newbie.