题解 | #牛牛的字符矩形#
牛牛的字符矩形
https://www.nowcoder.com/practice/2dbf0151eb71402e968a2a8e59092568
解题思路
思路多种多样,符合题目要求即可
代码实现
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); char c=sc.next().charAt(0); for(int i=1;i<=9;i++) { System.out.print(c); if(i%3==0) { System.out.println(); } } } }