sum = 0;
x = 2;
while ( x < 6 )
{
sum = sum + x;
x = x + 1;
}
I thought the calculation was to replace each value of x or sum with each assigned number but apparently I'm wrong. Can someone please explain how I am work this please? Thank you
