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

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

898


Can you please explain the difference between system.string and system.stringbuilder classes?

980


Explain code security?

863


What is a stream in vb.net?

923


What is the difference between compiler and interpreter?

966


How to run a dos command in vb.net?

977


What keyword is used to accept a variable number of parameter in a method?

975


What is the main purpose of garbage collector?

881


What is enumerator?

957


What is the maximum size of the textbox?

946


Can you please explain the difference between dispose and finalize()?

944


Explain enumerator?

862


What is the main use of a namespace?

925


What is difference between metadata and manifest?

1031


Explain the difference between int and int32?

874