Area of Square
Module Module1
Sub Main()
'Program to find the area of the square
Dim length, Area As Integer
Console.Write("Enter the length of the square: ")
length = Console.ReadLine
Area = length * length
Console.WriteLine("The area of the square 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