Ask Question
3 December, 14:25

Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates that value with total. Thus your code should associate 1*1 + 2*2 + 3*3 + ... + 49*49 + 50*50 with total. Use no variables other than k and total.

+5
Answers (1)
  1. 3 December, 18:05
    0
    Int k=0. total=0;

    while (k++<50)

    total+=k*k;
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates ...” in 📘 Computers and Technology 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