圆柱体积,用java代码
用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 [更多]
用户评论