简体   繁体   中英

Pyramid pattern using java with number

How to write a java program to print below the pattern?

    1
   2 2
  3   3
   2 2
    1

我想这就是你要找的:

System.out.println("\t   1\n\t 2   2\n\t3     3\n\t 2   2\n\t   1  ");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM