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

Popular posts from this blog

Program to extract vowel from the input string

Check whether the input number is arm-strong or not

Print the factorial value of an input number