Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/PROG/ Challenge Number 3 - Pi

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.)

Name: Anonymous 2007-09-14 6:21 ID:QO2KWuvl

pi = '3.1415.....................'
def PiDigits(digits):
    if digits <= 0:   return 0
    elif digits == 1: return 3
    else:             return pi[:digits + 1]


>>22
EXPERT WEB DEVELOPER ID

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List