Ну вот вообще не понимаю как перенести выполнение вложенного цикла на новую строку. Догадываюсь, что идиотизм, но...
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String one = reader.readLine();
String two = reader.readLine();
int m = Integer.parseInt(one);
int n = Integer.parseInt(two);
for(int a = 1; a<=m; a++){
System.out.println();
for(int b = 1; b<=n; b++){
System.out.print(8);
}
}
}
}
Так оно работает, но мешает пустая строка в началеpackage com.javarush.task.task04.task0436;
/*
Рисуем прямоугольник
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String one = reader.readLine();
String two = reader.readLine();
int m = Integer.parseInt(one);
int n = Integer.parseInt(two);
for(int a = 1; a<=m; a++){
for(int b = 1; b<=n; b++){
System.out.print(8);
}
}
}
}