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 use of internal keyword?
Explain cls?
Which control is an example of an object in vb net?
Which is the tool which can convert visual basic old version to .net compatibility version?
What is the role of new keyword?
What is the use of assembly?
Explain strong name in .net assembly?
Explain what observations between vb.net and vc#.net?
Did vb6 support multi-threading ?
What are the differences between c# and visual basic.net?
Is vb net a scripting language?
Explain trace in vb.net?
what is diffrence constructor and destructor in vb
Explain about branching logic control in vb.net?
Can you please explain the difference between thread and process?