关于VB编程的计算圆的面积和周长

2020-06-16 社会 150阅读
Const pi As Double = 3.141592
Private Sub Form_Resize()
Dim rad As Integer
Dim area As Double
Dim pre As Double rad = 10
area = pi * rad * rad
pre = 2 * pi * rad Print "半径="; rad
Print "圆面积="; area
Print "圆周长="; pre
End Sub
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com