VB.Net Program to Calculate the Area of the Circle

You are currently viewing VB.Net Program to Calculate the Area of the Circle

VB.Net program to calculate the area of the circle

'VB.Net program to calculate the area of the circle.

Module Module1

    Sub Main()

        Dim radius As Single = 0.0F
        Dim area As Single = 0.0F

        Console.Write("Enter the radius:")
        radius = Single.Parse(Console.ReadLine())

        area = 3.14F * radius * radius

        Console.WriteLine("Area of Circle: {0}",area)

    End Sub

End Module

Output

Enter the radius:5.2
Area of Circle: 84.90559
Press any key to continue . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply