Answer:
Following are the statement is given below
Int total=0; // variable declaration
int k=1; // variable declaration
while(k<=50) // iterating the loop
{
total=total+k*k; // calculating sum of the squares
k++; // increment the value of k
}
Explanation:
Following are the description of the above statement