import java.io.*;
class PrintStar
{
public static void main(String args[]) throws IOException
{
int x,y;
BufferedReader br = new
BufferedReader(new InputStreamReader(System.in));
System.out.print("請輸入寬: ");
x= Integer.parseInt(br.readLine());
System.out.print("請輸入高: ");
y= Integer.parseInt(br.readLine());
{
for(int i = 0; i < x; i++)
{
for(int j = 0; j < y; j++) {
System.out.print("*"); //印星星
}
System.out.println(); //換行
}
}
}
}
我來補充一下