Write a javascript program to accept numbers from user using Sentinel-controlled repetition. Calculate How many numbers entered are greater than 100, how many are less than 100 and also find the sum and average of all those numbers and display it, If user doesn’t enter any number then display a message no numbers were entered. Solution <script> <head> <html> <script type=\"text/javascript\"> document.write(\"<p><b>:</b></p>\"); var i = 0; for (i=0; i<=100; i++) { if (i==3) { break } document.write(\"The number is \" + i); document.write(\"<br />\"); } document.write(\"<p><b>Example of using the continue statement:</b><p>\"); var i = 0; for (i=0; i<=100; i++) { if (i==3) { var num = window.prompt(\"Enter the number:\",\"\"); var n = parseInt(num); result = sumnaturalno(n); window.alert(\"The sum of \" + n + \"natural number is\" + result); function sumnaturalno(n) { var i; var sum = 0; for(i = 1;i <= 100; i++) { sum = sum + i; } return (sum); } </script> </head> </html> .