数组实现杨辉三角

//写一个终端输入类以便键盘输入需要数值 import java.io.*; public class ConsoleReader { private String temp; BufferedReader reader; public ConsoleReader() { reader = new BufferedReader(new InputStreamReader(System.in)); } public int getInt() { try { temp = reader.readLine(); } catch (IOException ex) { ex.printStackTrace(); } return Integer.parseInt(temp); } } //数组实现杨辉三角 import com.mfg.console.ConsoleReader; public class YanHui { int[][] a; public YanHui() { ConsoleReader console=new ConsoleReader(); System.out.print("请输入要求的杨辉三角的级数:"); int n=console.getInt(); a=new int[n][]; for(int i=0;i
 

4.00 元  

阳光网游挂机程序专业店

[自动发货]梦幻西游辅助脚本单开压镖+半自动跑商+单开打图日卡

 

¥:7.00 

极限特攻-新奇产品仓库    金秋时节好礼送不停 

创意小猪/手摇式LED手电/手动手电/LED手电

来源:程序员网

小小豆叮

0 Responses to "数组实现杨辉三角"

发表评论