Posts by Bruno Martins • 1 point
1 post
-
-3
votes1
answer33
viewsQ: Estimating Pi in Javascript
I’m trying to estimate Pi, but I get one NaN. var x = 0 var y = 0 var fora = 0 var dentro = 0 var f = document.querySelector('input#t') var t = Number(f.value) var pi =…
javascriptasked Bruno Martins 1