Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
dragon731012
GitHub Repository: dragon731012/-WORKING-bookmarklets-and-games
Path: blob/main/school/average finder by 22yeets22
15445 views
javascript: for(var many=prompt("How many numbers do you want to find the average of?"),count=0,sum=0;count<many;)sum+=parseInt(prompt("What is one of the numbers?")),count++;sum/=count,alert("The result is: "+sum); alert("by 22yeets22 at https://github.com/22yeets22");