Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program that accepts an array of numbers and a
number, and return a string “Yes” if
the number is found in the array, “No” if the number is not
found in the array.

Answer Posted / lince

Dim num() As Integer = {5, 3, 6, 7, 1}
Public Function Find(ByVal sNum As Integer) As String
Dim i As Integer = 0
For i = 0 To num.Count - 1
If (sNum = num(i)) Then
Return "Yes"
End If
Next
Return "No"
End Function

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of internal keyword?

974


Explain cls?

1003


Which control is an example of an object in vb net?

6942


Which is the tool which can convert visual basic old version to .net compatibility version?

961


What is the role of new keyword?

1027


What is the use of assembly?

995


Explain strong name in .net assembly?

974


Explain what observations between vb.net and vc#.net?

952


Did vb6 support multi-threading ?

942


What are the differences between c# and visual basic.net?

1039


Is vb net a scripting language?

951


Explain trace in vb.net?

967


what is diffrence constructor and destructor in vb

962


Explain about branching logic control in vb.net?

924


Can you please explain the difference between thread and process?

977