Ask Question
7 November, 14:48

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.

+5
Answers (1)
  1. 7 November, 15:50
    0
    I don't know what language you are working with, but

    set Sum = 0

    For k = 1 to 50

    Sum = Sum + k^2

    Loop
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “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 ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers