Francis Hadriel B. Pomida-g12-Ict Programming - Output 2problem # 3
Francis Hadriel B. Pomida-g12-Ict Programming - Output 2problem # 3
Module Module1
Dim usrname As String
Dim passwrd As String
Dim count As Integer = 1
Sub Main()
Console.Write("USERNAME: ")
usrname = (Console.ReadLine)
Console.Write("PASSWORD: ")
passwrd = (Console.ReadLine)
If usrname = "Senku" And passwrd = "qwerty" Then
MsgBox("Acces Granted", 64 + 0, "HURRAY")
If MsgBoxResult.Ok Then
Exit Sub
End If
Else
MsgBox("Pls Try again", 16 + 0, "Attention")
If MsgBoxResult.Ok Then
While count <= 4
count = count + 1
If count = 0 Then
Console.Clear()
Main()
ElseIf count = 1 Then
Console.Clear()
Main()
ElseIf count = 2 Then
Console.Clear()
Main()
ElseIf count = 3 Then
Console.Clear()
Main()
ElseIf count = 4 Then
Console.Clear()
Else
MsgBox("BETTER LUCK NEXT TIME", 64 + 0, "FAIL TO LOGIN")
If MsgBoxResult.Ok Then
Exit Sub
End If
End If
End While
End If
End If
End Sub
End Module