标签:
1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 for(int i = 1; i <= 8; i++) 6 { 7 for(int j = 8 - i; j > 0; j--) 8 System.out.print(" "); 9 for(int j = 1; j <= i; j++) 10 System.out.print((int)(Math.pow(2, j - 1)) + " "); 11 for(int j = i - 1; j >= 1; j--) 12 System.out.print((int)(Math.pow(2, j - 1)) + " "); 13 System.out.println(); 14 } 15 } 16 }
标签:
原文地址:http://www.cnblogs.com/wood-python/p/5770940.html