2018年4月2日

杨辉三角

摘要: public class yanghuisanjiao{ public static void main(String[] args){ int [][] arr=new int[10][10]; for(int i=0;i<arr.length;i++){ arr[i]=new int[i+1]; 阅读全文

posted @ 2018-04-02 21:00 31王鹏 阅读(129) 评论(0) 推荐(0) 编辑

计算n的阶乘。

摘要: package test; import java.uti1.Scanner; public class test1{ public static void main(String[] args){ int n; Scanner s=new Scanner(System.in); n=s.nextI 阅读全文

posted @ 2018-04-02 20:38 31王鹏 阅读(190) 评论(0) 推荐(0) 编辑

导航