I nested the for loops like this and it does work but the verifier doesn't like it. Can anyone help me clean it up?
package com.codegym.task.task04.task0436;
/*
Drawing a rectangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
String sM = reader.readLine();
String sN = reader.readLine();
int a = Integer.parseInt(sM);
int b = Integer.parseInt(sN);
for(int j=0;j<2;j++){
System.out.println();
for(int i = 0; i<4; i++){
System.out.print(a*b);
}
}
}
}