class V(object):
def baidu(self,r,h):
#r = int(input("圆的半径是?"))
#h = int(input("圆柱的高是?"))
s = r * r * 3.14
# 圆柱的表面积=侧面积+两个底面积=2πrh+2πr^2
cs = (2 * 3.14 * r * h) + (2 * 3.14 * r) * (2 * 3.14 * r)
cv = 3.14 * r * r * h
#round(s,5)
s = ("%.4f" % s)
cs = ("%.4f" % cs)
cv = ("%.4f" % cv)
zhouchang = "圆的周长是"+str(s)
mianji="圆柱的面积是"+str(cs)
tiji = "圆柱的体积是"+str(cv)
return zhouchang,mianji,tiji
if __name__ == '__main__':
r = float(input("圆的半径是?"))
h = float(input("圆柱的高是?"))
a=V()
p=a.baidu(r,h)
print(p)