Given int variables k and total that have already been declared, use a for loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total . Thus your code should put 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 into total . Use no variables other than k and total .
Recently Asked Questions
- What contrasts and discrepancies are at the heart of Swift’s ironic statement in paragraphs 9 and 10? Explain both the subtlety and savagery of the satire
- Critically reflect on issues of inequality associated with intimate relationships, you should draw on and provide definitions of THREE of the following
- Please refer to the attachment to answer this question. This question was created from Homework3.