Area of Circle
Module Module1
Sub Main()
'program to find the area of the circle
Dim radius, Area, pi As Single
Console.Write("Enter the radius of the circle: ")
radius = Console.ReadLine
pi = 3.14
Area = pi * radius * radius
Console.WriteLine("The area of the circle is: " & Area)
Console.ReadKey() 'This line of code is used to hold the output window to see the output
End Sub
End Module
Comments
Post a Comment