//输出 i 行,j 列 *
import java.util.Scanner;
class XingXing{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("请输入星形图案的行数:");
int m = sc.nextInt();
System.out.println("请输入星形图案的列数:");
int n = sc.nextInt();
xingXing(m,n);
}
public static void xingXing(int i,int j){
for(int x = 0;x < i;x++){
for(int y = 0;y < j;j++){
System.out.print("*");
}
System.out.println();
}
}
}
import java.util.Scanner;
class XingXing{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("请输入星形图案的行数:");
int m = sc.nextInt();
System.out.println("请输入星形图案的列数:");
int n = sc.nextInt();
xingXing(m,n);
}
public static void xingXing(int i,int j){
for(int x = 0;x < i;x++){
for(int y = 0;y < j;j++){
System.out.print("*");
}
System.out.println();
}
}
}