+ 1
How can I complete this π test ?
I am trying to get the π PI value up to 15 decimal places. But now facing a problem, it ran out my Memory no matter in Sololearn apps or chrome in Win. As I was trying for about 10000000000 times. Is there any improve can I do for the code? Or a better language for this question? Or a larger memory for my computer? Tell me if anything wrong with me coz I still new in coding. Thz ^_^ https://code.sololearn.com/WOZC4siTSei3/?ref=app
1 Respuesta
+ 4
So many iterations are needed to converge to pi. Give 25000 as input to your code and you can see that only the first 4 decimal places are matching.