package ch01_6;
public class Cylinder {
	public static void main(String[] args) {
		double r,h,s,v;
		r = 3;
		h = 10;
		s = 2 * 3.14 * r *r + 2 * 3.14 * r * 2;
		v = 3.14 * r *r * h;     
		System.out.println("圆柱的表面积为："+s); 
		System.out.println("圆柱的体积为："+v); 
	}
}