"My win is no surprise."
Putin
"My win is quaranteed."
Chavez
C: FOR PROGRAMMABLE VOTING MACHINES
C: A$ represents Chavez; B$ represents Capriles
C: AA represents cumulated votes for Chavez; BB represents cumulated votes for Capriles
C: a is the vote for Chavez; b is the vote for Capriles
C: CC is the transition vaiable
STRING: A$; B$
INTEGER: AA; BB; a, b, CC, N
A$="Chavez"; B$="Capriles
AA=0; BB=0; a=0; b=0
INPUT a,b
For all N=a + b
AA=AA + a
BB=BB + b
If AA > BB then
PRINT A$ "wins with" AA "votes; PRINT B$ "loses with" BB "votes"
C: Chavez wins the election by a landslide.
ELSE
NEXT
C: Use transition variable CC now
CC = BB
BB = AA
AA = CC
PRINT A$ "wins with" BB "votes; PRINT B$ "loses with" AA "votes
C: Chavez wins the election by a landslide.
A few lines missing.
Election rigging. Posssible?