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
What is the difference between readonly variable and constant variable?
Explain option strict?
What is public assembly?
Explain clr?
Explain how does the xmlserializer work?
What do you mean by serialization and deserialization?
Explain about visual basic?
Explain convert.tostring and i.tostring method?
I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com
Explain how the .net framework performs automatic memory management.
Is vb.net dead?
Did vb6 support multi-threading ?
So you know which dll is used for microsoft .net run time?
What is visual basic.net culture?
Explain an assembly and its use?