hw6a - # Set m to m times (1 + r) # Decrease y by 1 return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
def myFunction(p,r,y): # if p, r, or y is negative, return 0 m = 1 while y > 0:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: # Set m to m times (1 + r) # Decrease y by 1 return p * m...
View Full Document

This note was uploaded on 10/28/2010 for the course CSCI 1001 taught by Professor Staff during the Spring '08 term at Minnesota.

Ask a homework question - tutors are online