Imports System
Imports Microsoft.VisualBasic 'this isn't needed if you are using Visual Studio
Public Module Module1
Public Sub Main()
dim location as integer
dim startString as string = "Hello World"
location = instr(startString, "W")
Console.WriteLine(location)
location = instr(startString,".com")
End Sub
End Module
'TASKS
'1. Figure out what this is doing. Try changing the W in line 10 to other letters
'2. Assuming you have fgured out this does, what is the issue if you put the letter o instead of W in Line 10?
'3. Can you use instr to figure out if someone enters a valid email address? By valid I mean includes an @ (simplistic I know!)