2018年4月24日

圆柱的体积

摘要: ackage 类的抽象与封装; public class yuan { private double Radius;//成员变量 public double circle() { return Radius; } public void circle(double r) {//创建时将半径初始化为r 阅读全文

posted @ 2018-04-24 20:44 维伽 阅读(129) 评论(0) 推荐(0) 编辑

2018年4月3日

杨辉三角

摘要: public class Javav { 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-03 18:39 维伽 阅读(89) 评论(0) 推荐(0) 编辑

阶乘

摘要: import java.util.Scanner; public class KnownTest { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("输 阅读全文

posted @ 2018-04-03 18:37 维伽 阅读(115) 评论(1) 推荐(0) 编辑

导航