public class demo1
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.print("输入矩形的宽:");
int width = input.nextInt();
System.out.print("输入矩形的长");
int length = input.nextInt();
method(width,length);
}
public static void method(int width,int length)
{
for (int i = 0; i <=width; i++)
{
for (int j = 0; j <= length; j++)
{
System.out.print("*");
}
System.out.print("\n");
}
}
}