Is it really homework? Then you better NOT submit this:
use strict; use warnings; use bignum accuracy => 30; use feature 'say'; $/=--$,;say+4*($\+=($/*=-1)/($,+=2))for+1..10;
In reply to Re: to calculate the value of π
by hdb
in thread to calculate the value of π
by TimTim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |