题解 | #正方形图案#
正方形图案
http://www.nowcoder.com/practice/1304bb23c2e344989d5c7a578d263e4c
import java.util.Scanner;
public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ int a = in.nextInt(); for(int i=0;i<a;i++){ for(int j=0;j<a;j++){ System.out.print("* "); } System.out.println(); } } } }