trying to print a square of X's and Y's using nested for loops
Input: 3 7 4 Output: XXXY XXYY XYYY XXXXXXXY XXXXXXYY XXXXXYYY XXXXYYYY XXXYYYYY XXYYYYYY XYYYYYYY XXXXY XXXYY XXYYY XYYYY I have an idea that involves 2 for loops nested in another for loop that would look something like: String ret = ""; for (int row = 0; row < size; row++) //size is the input… Read More trying to print a square of X's and Y's using nested for loops