Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Official = FALSE
  2.  
  3. While Official == FALSE
  4. Vote = input("Vote A, B or C")
  5. If Vote == "A" then
  6. canA = canA + 1
  7. elseIf Vote == "B" then
  8. canB = canB + 1
  9. else
  10. canC = canC + 1
  11. endIf
  12. Verify = input("Are you an official, if so, enter YES")
  13. If Verify == "YES" then
  14. Official = TRUE
  15. else
  16. Official = FALSE
  17. endIf
  18. end while
  19.  
  20. If Official == TRUE then
  21. Over = input("Do you want to end vote? enter END")
  22. If Over == "END" then
  23. print("A= ", canA, "B= ", canB, "C= ", canC)
  24. Total = canA + canB + canC
  25. print("The total votes cast is ", Total)
  26. endIf
  27. endIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement