Guest User

Untitled

a guest
Jun 16th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Module Module1
  2.  
  3. Sub Main()
  4. Dim user As String = Nothing
  5. Dim pass As String = Nothing
  6. Dim begin As String = Nothing
  7. Dim game As String = Nothing
  8. Console.WriteLine("Enter your name")
  9. user = Console.ReadLine()
  10. Console.WriteLine("Enter your password")
  11. pass = Console.ReadLine()
  12. If (user = "Sarah" Or user = "Roy") And pass = "buttercup" Then
  13. Console.WriteLine("Welcome to Visual basic " & user)
  14. Else
  15. Console.WriteLine("That username or password is incorrect " & user)
  16. Console.ReadLine()
  17. Return
  18. End If
  19. Console.WriteLine("Lets begin shall we?")
  20. begin = Console.ReadLine()
  21. If begin = "yes" Or begin = "Yes" Then
  22. Console.WriteLine("What shall we do first?")
  23. game = Console.ReadLine()
  24. Else
  25. Console.WriteLine("Goodbye " & user)
  26. Console.ReadLine()
  27. Return
  28. End If
  29. Console.ReadLine()
  30. End Sub
  31. End Module
Add Comment
Please, Sign In to add comment