The document describes a program that uses a while loop to determine the sum of the squares of numbers from 1 to 10. The program takes no input, runs the while loop to calculate the sum, and outputs the result, successfully determining the sum of squares from 1 to 10.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views2 pages
Sum of Squares Using While Loop
The document describes a program that uses a while loop to determine the sum of the squares of numbers from 1 to 10. The program takes no input, runs the while loop to calculate the sum, and outputs the result, successfully determining the sum of squares from 1 to 10.