CSC111 Debugging with Print Statements

From dftwiki3
Jump to: navigation, search

--D. Thiebaut (talk) 09:56, 17 February 2014 (EST)


sum = 0
i = 0
while i <= 10:
   if i % 2 == 0:
      sum = sum + 1
   else:
      i = i + 1

print( "Done!" )