I wrote a simple program to calculate pi from the Buffon\'s needle experiment. But I always keep getting approx 2.5 instead of 3.14159. Here is my code...
fro