In: Computer Science
* Javascript *
JavaScript code:-
<html>
<head>
</head>
<body>
<p>
<script>
var arr=[];
var sum=0;
for(var i=0;i<100;i++){
arr[i]=prompt('enter element'+(i+1));
arr[i]=parseInt(arr[i]);
sum=sum+arr[i];
}
window.alert('summation is='+sum);
</script>
</p>
</body>
</html>