注意事项:必须是Main.java
参考代码:
import java.util.Scanner; public class Main { public static void main(String []args) { Scanner scan=new Scanner(System.in); char c=scan.next().charAt(0); System.out.println(" "+c ); System.out.println(" "+c+c+c); System.out.println(""+c+c+c+c+c); System.out.println(" "+c+c+c); System.out.println(" "+c ); } }
0.0分
0 人评分