У меня ведь определенно есть вложенные циклы. Или обязательно нужно чтобы while был под while без if else между ними?
package com.javarush.task.pro.task04.task0405;
/*
Незаполненный прямоугольник
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
int a = 0;
while (a<10) {
if (a==0 || a==9) {
int b = 0;
while (b<20) {
System.out.print("Б");
b++;
}
} else {
int c = 0;
while (c<20) {
if (c==0 || c==19) {
System.out.print("Б");
} else {
System.out.print(" ");
} c++;
}
} System.out.println();
a++;
}
}
}