ConsoleApplication in Vb.Net using If and then
Dim n(10), i, a As Integer
Console.WriteLine("enter the values")
For i = 0 To 9
n(i) = Console.ReadLine()
Next
Console.WriteLine("enter the value which you want find in array")
a = Console.ReadLine()
For i = 0 To 9
If (n(i) = a) Then
Console.WriteLine("no is found")
Stop
Console.ReadLine()
Else
Console.WriteLine("no is not found")
Console.ReadLine()
Stop
End If
Dim n(10), i, a As Integer
Console.WriteLine("enter the values")
For i = 0 To 9
n(i) = Console.ReadLine()
Next
Console.WriteLine("enter the value which you want find in array")
a = Console.ReadLine()
For i = 0 To 9
If (n(i) = a) Then
Console.WriteLine("no is found")
Stop
Console.ReadLine()
Else
Console.WriteLine("no is not found")
Console.ReadLine()
Stop
End If
0 comments: