double sum = 0;
double d;
for (d = 0; d < 10; d = d + 0.1 )
{
sum = sum + d;
}
The program has a syntax error because the semicolons in the for loop are in the wrong place.
The program has a syntax error because the control variable in the for loop cannot be double.
c. The program compiles but does not stop because d would always be less than 10.
d. The program compiles and runs fine.