Analyze the following statement: double sum = 0; for (double d = 0; d<10; d ) d = 0.1; sum = sum d; What is the issue with the given program?
1) The program has a syntax error because the for loop condition is missing the increment statement
2) The program has a syntax error because the variable 'sum' is not declared
3) The program has a syntax error because the variable 'd' is not declared
4) The program has a syntax error because the variable 'd' is not incremented in the for loop



Answer :

Other Questions