摘要: import java.util.Scanner; public class 阶乘 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("输入一个数字") 阅读全文
posted @ 2018-03-31 15:36 孔得秀 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 杨辉三角 package 孔得秀; public class 杨辉三角 { public static void main(String args[]) { int i,j,x=6;//定义三角层数 int a[][] = new int[x][x];//定义数组 for( i=0;i<x;i++) 阅读全文
posted @ 2018-03-31 15:33 孔得秀 阅读(127) 评论(0) 推荐(0) 编辑
摘要: package 孔得秀; public class 杨辉三角 { public static void main(String args[]) { int i,j,x=6;//定义三角层数 int a[][] = new int[x][x];//定义数组 for( i=0;i<x;i++)//对数组 阅读全文
posted @ 2018-03-31 15:26 孔得秀 阅读(48) 评论(0) 推荐(0) 编辑