import java.util.Scanner;
class Text48 {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
System.out.println("请输入第一个数");
int x = sc.nextInt();
System.out.println("请输入第二个数");
int y = sc.nextInt();
print(x,y);
}
public static void print(int m,int n){
for (int i=1 ;i <= m ;i++ ){
for (int j =1;j <=n ;j++ )
{
System.out.print("*");
}System.out.println();
}
}
}
|
|