vB程序设计题 圆的半径为1.5,高为3,求圆柱的表面积和体积
发布网友
发布时间:2023-11-04 07:00
我来回答
共2个回答
热心网友
时间:2024-12-12 01:38
圆的周长=3.14x 圆的直径= 2X3.14x圆的半径
圆的面积=3.14x 圆的半径x 圆的半径
圆柱的表面积=圆的面积*2+圆的周长*高
圆柱的体积=圆的面积*高
热心网友
时间:2024-12-12 01:39
Private Sub form_click()
Dim R As Single
Dim H As Single
Dim S As Single
Dim V As Single
Const Pi = 3.14159
R = 1.5
H = 3
S = (Pi * R * R) * 2 + (2 * Pi * R) * H
V = (Pi * R * R) * H
Print "圆柱的表面积="; S
Print "体 积="; V
End Sub