Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Dim area As Double
Dim radius As Single
Const pi = 3.142
radius = InputBox("enter radius")
area = pi * radius ^ 2
area = MsgBox("area is" & area)
End Sub
End Class

You might also like