Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
dragon731012
GitHub Repository: dragon731012/-WORKING-bookmarklets-and-games
Path: blob/main/tests (don't work)/average finder
15496 views
javascript:var many=prompt("how many numbers do you want to find the average of?");var count=0;const list=[];while (count<many){var num=prompt("what is one of the numbers?");list.push(num);count=count+1;}var count2=0;var sum=0;while (count2<many){sum=sum+list[count2];count2=count2+1;}var final=sum/many; alert(final);