Envision an algorithm that when given any positive integer n, it will print out the sum of
Fantastic news! We've Found the answer you've been seeking!
Question:
Envision an algorithm that when given any positive integer n, it will print out the sum of the squares from 1 to n.
E.g. given 4 the algorithm would print 30 (because 1 + 4 + 9 + 16 = 30) You can use multiplication denoted as * in your solution and you do not have to define it (e.g. 2*2=4)
Write pseudocode for this algorithm using iteration (looping).
Related Book For
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke
Posted Date: