Visual basic (Console)
Edit the source code byadding a class that computes for the area of 3 rectangle and display results.
Source Code
Module Module1Sub Main()Dim length As Single = 0.0FDim breadth As Single = 0.0FDim area As Single = 0.0FConsole.Write("Enter the length of rectangle: ")length = Single.Parse(Console.ReadLine())Console.Write("Enter the breadth of rectangle: ")breadth = Single.Parse(Console.ReadLine())area = length * breadthConsole.WriteLine("Area of ractangle: {0}", area)End SubEnd Module
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here