VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Area Of Circle Calculator

by Brady Botkin (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

This code allows the user to find the area of circle by clicking a command button and then typing in the radius of the circle. It is very helpful to anyone working on a calculator project. I am also coming out with area of triangle and square.

Rate Area Of Circle Calculator

' Step 1. Place a command button in your form and name it Command1 and make the 
'caption Area Of A Circle.
' Step 2. Copy this code into the form...
Private Sub Command1_Click()
 
 Dim Radius
 Radius = InputBox("Type In The Radius", "Radius")
 Dim Area
 Area = 3.14 * (Radius * Radius)
 MsgBox Area, vbDefaultButton1, "Answer"
 
 Dim Answer
 
 
End Sub

Download this snippet    Add to My Saved Code

Area Of Circle Calculator Comments

No comments have been posted about Area Of Circle Calculator. Why not be the first to post a comment about Area Of Circle Calculator.

Post your comment

Subject:
Message:
0/1000 characters