Write a code segment that declares sum and sets it to the sum of the squares of the first 100 positive integers. (Start with 1.)
int sum = 0; for (int i=1; i<=100; i++) sum = sum + i*i;