Write a visual basic code to find the circumference of a circle with a user defined radius
Module Module1
Sub Main()
Console.Write("Enter a radius of a circle: ")
Dim radius As Double = Double.Parse(Console.ReadLine())
Dim circumferenceCircle As Double = 2 * Math.PI * radius
Console.WriteLine("Circumference of a circle : {0}", circumferenceCircle)
Console.ReadLine()
End Sub
End Module
Comments
Leave a comment