language: bc (bc-1.06.95)
date: 260 days 22 hours ago
link:
visibility: public
1
2
3
4
5
6
7
/* read the numbers; notice: ech line of the input must be followed by an EOF character */
x = read();
 
/* compute the pi number accurately to 10 decimal places */
scale=x
print "\npi = \n", 4*a(1), "\n"