Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Official = FALSE
- While Official == FALSE
- Vote = input("Vote A, B or C")
- If Vote == "A" then
- canA = canA + 1
- elseIf Vote == "B" then
- canB = canB + 1
- else
- canC = canC + 1
- endIf
- Verify = input("Are you an official, if so, enter YES")
- If Verify == "YES" then
- Official = TRUE
- else
- Official = FALSE
- endIf
- end while
- If Official == TRUE then
- Over = input("Do you want to end vote? enter END")
- If Over == "END" then
- print("A= ", canA, "B= ", canB, "C= ", canC)
- Total = canA + canB + canC
- print("The total votes cast is ", Total)
- endIf
- endIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement