var i, total=0;for (i=1;i<=3000;i++){ total += Math.sqrt(2 * Math.pow(i, 2));; document.write("Total: " + total); document.write("<br>");}
No comments :
Post a Comment