pi_calc
Two things that most people like: pie and pi. Many people also like Py(thon).
Coded August 2010.
#create PI, fresh from the oven i = 0 current_number = 0 current_denominator = 1 while i < 10000000: current_number+=(i/current_denominator) if current_denominator > 0: current_denominator = -current_denominator-2.0 else: current_denominator = -current_denominator+2.0 i+=1 print(abs(current_number*8))