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