import java.util.Scanner;
class ChangFangXing
{
public static void main(String[]args )
{
Scanner sc=new Scanner (System.in);
System.out.println("请输入行");
int a=sc.nextInt();
System.out.println("请输入列");
int b=sc.nextInt();
chang(a,b);
}
public static void chang(int a,int b)
{
for (int i=0;i<a ;i++ )
{
for (int j=0;j<b ;j++ )
{
System.out.print("*");
}
System.out.println();
}
}
}
|
|