教育路上
摘要:Java求第一个圆柱体的表面积和体积。以下是我们为大家整理的,相信大家阅读完后肯定有了自己的选择吧。
2022-12-02 16:12马秀榕
package fist; public class test { public static void main(String[] args) { // student s=new student(); // // s.setname("李四"); // s.setscore1(80); // s.setscore2(80); // s.setscore3(80); // s.show(); // student s1=new student("张三",60,60,60); // s1.show(); // student s2=new student("李白",60,60,60); // s2.show(); cylinder s3=new cylinder(5,5); s3.show();//求第一个圆柱体的表面积和体积; cylinder s4=new cylinder(6,6); s4.show();//求第二个圆柱体的表面积和体积; cylinder s5=new cylinder(); s5.sethigh(7); s5.setwidth(7); s5.show();//求第三个圆柱体的表面积和体积; // } }
访客的评论 2024/04/28 04:56
文中描述的是准确的吗,如何报名!