Dim RPassword As String = "Welcome to the world"
Dim Password As String = ""
Console.WriteLine("Please enter the password:")
Password = Console.ReadLine()
If Rpassword = Password then
Console.WriteLine("You have typed in the correct password")
Console.WriteLine("You have typed in the incorrect password, please try again")
Console.WriteLine("Sorry you are banished as you haven't typed in the correct password")
Loop Until Password = Rpassword