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
Explain enumerator?
What is datatype conversion?
i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate
List the two main parts of .net?
What is the difference between custom control and user control?
What’s the difference between private and shared assembly?
What is the difference between convert.tostring and .tostring() method?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
Why do we use byref keyword in vb.net?
Can you please explain the difference between namespace and assembly?
Explain option explicit?
What is the feature which is common to all .net languages?
List the types of generations in garbage collector?
what is diffrence constructor and destructor in vb
What is globalization?