Name: Anonymous 2007-09-13 22:45 ID:IZip/Yni
Make a program to calculate pi to the n'th decimal. Input the variable at runtime. Program In the language of you choice. (and none of the print"3.1415" crap.)
pi = '3.1415.....................'
def PiDigits(digits):
if digits <= 0: return 0
elif digits == 1: return 3
else: return pi[:digits + 1]