Dim banned_password() As String = {"123456", "password", "qwerty", "111111", "123456789"}
Dim isPasswordInValid As Boolean
Console.WriteLine("Hello and Welcome to your account registration")
displayArray(banned_password)
Console.WriteLine("Enter username")
username = Console.ReadLine()
Console.WriteLine("Enter password")
password = Console.ReadLine()
If password = banned_password(i) Then
Console.WriteLine("You have entered a banned password, try another one")
password = Console.ReadLine()
isPasswordInValid = False
Console.WriteLine("you are registered")
Public Sub displayArray(Arr() As String)
Console.WriteLine("Here is a list of passwords that are not allowed")
Console.WriteLine(Arr(i))