I've been trying this for hours but couldn't figure out a way to do it. We were given an assignment in school to get 2 inputs for Height and Width(assuming they're between 2-50), and create a rectangle in this way: the rectangle frame will be made out of the letter a, the inner rectangle frame will be made out of the letter b, the inner rectangle frame of the inner rectangle frame will be made out of the letter c, and so on... for instance:
10X7:
aaaaaaaaaa
abbbbbbbba
abccccccba
abcddddcba
abccccccba
abbbbbbbba
aaaaaaaaaa
I was trying working with "for" loops for height and width and I was drawing matrix as draft to see how to change the letter jumping with ASCII values, but I couldn't figure out an algorithm. help would be very appreciated.