用VB设计一个计算圆的面积的程序
发布网友
发布时间:2022-04-28 16:23
我来回答
共1个回答
热心网友
时间:2022-06-19 16:56
Option Explicit
Private Sub Command1_Click()
Label1.Visible = True
Dim r As __single___
Dim____s___As Double
_const____ pi = 3.14159
r = Text1.Text
s = ___2*pi*r__
Label1.__caption___ = s
End Sub
Private Sub Form_Load()
Label1.Visible = False
End Sub