CSC231 multBy3.py Program

From dftwiki3
Revision as of 07:14, 3 October 2012 by Thiebaut (talk | contribs) (Created page with "--~~~~ ---- <source lang="python"> # multBy3.py # D. Thiebaut # A simple program showing how Python deals with # integer overflow. # (Python V 2.7) # To run: # python multBy3...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut 08:14, 3 October 2012 (EDT)


# multBy3.py
# D. Thiebaut
# A simple program showing how Python deals with
# integer overflow.
# (Python V 2.7)
# To run:
#    python multBy3.py
#

a = 2

for i in range( 70 ):
    print a
    a = a * 3