Thursday, 29 October 2009

Problem 2

Write a JavaScript program that calculates the sum of the numbers between 1
and 10 (inclusive), using a single while loop.


This displays the sum of numbers through to ten in the browser:


No comments: