import java.util.Scanner;
class Ju
{
public static void main(String[] args)
{
int a,b;
sys("请输入长");
a=input();
sys("请输入宽");
b=input();
ju(a,b);
}
public static void ju(int x,int y)
{
for (int a=0;a<x ;a++ )
{
for (int b=0;b<y ;b++ )
{
System.out.print("*");
}
System.out.println();
}
}
public static int input()
{
Scanner sc = new Scanner(System.in);
int input = sc.nextInt();
return input;
}
public static void sys(Object o)
{
System.out.println(o);
}
}
|