会计考友 发表于 2012-8-4 12:33:16

2012JAVA模拟试题及答案:编程题33

【程序33】   
题目:打印出杨辉三角形(要求打印出10行如下图)      
            1   
          1    1   
      1    2    1   
      1    3    3    1   
    1    4    6    4    1   
1    5    10    10    5    1   
…………
public class lianxi33 {
public static void main(String[] args) {
    int[][] a = new int;
   for(int i=0; i
页: [1]
查看完整版本: 2012JAVA模拟试题及答案:编程题33