Android Practical 17
Android Practical 17
Module Module1
Public Class calculator
Dim l, b, h As Integer
Dim v As Integer
Function getdata()
Console.WriteLine("Enter Length, Breadth and height")
l = Console.ReadLine()
b = Console.ReadLine()
h = Console.ReadLine()
End Function
Function volume()
v = l * b * h
Return v
End Function
End Class
Sub main()
Dim a As Integer
Dim v1 As New calculator
v1.getdata()
a = v1.volume
Console.WriteLine("Volume:" & a)
Console.ReadKey()
End Sub
End Module
Public Class Form1
Class Average
Dim x, y, z As Integer
avg = total / 3
Return avg
End Function
End Class