
Keonta H. answered 09/23/20
BS in Computer Science with 10 years of experience.
the logic for a and b would be:
//even numbers 2-100
var sum = 0;
var i;
for (i = 1; i <= 100; i++) {
if (i%2 ==0){
sum = sum+ i;
}
}
//squares
var sumsquare = 0
var i=1;
while (i*i<=100) {
sumsquare= sumsquare +(i*i)
i++
}

Keonta H.
the logic for the rest stays the same. Just adjust the math09/23/20