1. 首页
  2. 课程学习
  3. Java
  4. 圆柱体积,用java代码

圆柱体积,用java代码

上传者: 2018-12-08 00:39:23上传 JAVA文件 457B 热度 69次
用java求圆柱体积;import java util Scanner; public class Cylinder{ public static void main String[] args { System out print "Enter the radius and length of a cylinder:" ; Scanner input new Scanner System in ; float radius input nextFloat ; float length input nextFloat ; float area float Math PI radius radius; float volume area length; System out println "The area is "+area ; System out println "The volume is "+volume ; } }">用java求圆柱体积;import java util Scanner; public cla ss Cylinder{ public static void main String[] args { System out print "Enter the radius and length of a cylinder:" ; Scanner input new Scanner System in ; float radius input nextFloat ; float length input nextFlo [更多]
用户评论