dim totalnumberofstudents as integer
dim Weightofstudents(size) as double
console.Write("Enter total number of students")
size = console.readLine()
for i as integer = 0 to size
console.Writeline("enter array elements")
weightofstudents(i) = console.ReadLine()
for z as integer = 0 to size
sum = sum + weightofstudents(z)
Dim notosearch As Integer
Console.Write("Enter no to search from an array ")
notosearch = Console.ReadLine
Dim found As Boolean = False
While count <= (size) And Not found
If mylist(size) = notosearch Then
End WhileDim location As Integer
Dim notosearch As Integer
Console.Write("Enter no to search from an array ")
notosearch = Console.ReadLine
Dim found As Boolean = False
While count <= (maxindex) And Not found
If mylist(size) = notosearch Then
Console.WriteLine("Required no " & notosearch & " is existing in the list at location " & location)
Console.WriteLine("Required no is not in the existing in the list ")