answersLogoWhite

0

<html>

<head>

<script type="text/javascript">

var n, tally = 0;

for(n = 1; n <= 1023; n += 2){

tally += n;

}

document.getElementByID('output').innerHTML = 'the tally is ' + tally;

</script>

</head>

<body>

<div id="output">

</div>

</body>

User Avatar

Wiki User

14y ago

What else can I help you with?