Dim Cand1, Cand2, Cand3, Cand4, Vote as Integer
Console.WriteLine("How Much Candidates In Your Class")
Candnum = Console.ReadLine()
Do until Candnum >= 2 and Candnum <= 4
Console.Writeline(errmess)
Candnum = Console.readLine()
Dim Candidate(Candnum) as String
Console.Writeline("What Are The Names Of Candidates")
Candidate(i) = Console.ReadLine()
Console.writeline("How Much Students Are In Your Class")
Students = Console.readline()
If students < 0 or students > 31
Do until students >= 0 and students < 31
Console.writeline(errmess)
Students = console.readLine()
Console.WriteLine("These Are The Candidates For President")
Console.WriteLine(Candidate(i) & "'s Voting Number Is " & i)
Console.WriteLine("Enter Vote")
Vote = Console.readline()
Do Until Vote >= 1 and Vote <= 4
Console.writeline(errmess)
Vote = Console.readline()
If Vote = 1 then Cand1 = Cand1 + 1
If Vote = 2 then Cand2 = Cand2 + 1
If Vote = 3 then Cand3 = Cand3 + 1
If Vote = 4 then Cand4 = Cand4 + 1
If Cand1 > Cand2 and Cand1 > Cand3 and Cand1 > Cand4
Else if Cand2 > Cand1 and Cand2 > Cand3 and Cand2 > Cand4
Else if Cand3 > Cand2 and Cand3 > Cand1 and Cand3 > Cand4
Else if Cand4 > Cand2 and Cand4 > Cand3 and Cand4 > Cand1
Else if Cand1 = Cand2 = Cand3 = Cand4
console.writeline("There Is No Clear Winner")
Else console.WriteLine(President & " Is The Elected President With " & Numvote & " Votes.")