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