![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 08.11.2019 20:31, okokjade
Analyze the following code.
double sum = 0;
for (double d = 0; d < 10; sum += sum + d) {
d += 0.1;
}
a. the program has a syntax error because the adjustment statement is incorrect in the for loop.
b. the program has a syntax error because the control variable in the for loop cannot be of the double type.
c. the program compiles but does not stop because d would always be less than 10.
d. the program compiles and runs fine.
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 04:10, cvbnkifdfg
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
Do you know the correct answer?
Analyze the following code.
double sum = 0;
for (double d = 0; d < 10; sum...
double sum = 0;
for (double d = 0; d < 10; sum...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 25.03.2020 21:36
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/health.png)
Health, 25.03.2020 21:36
![Konu](/tpl/images/cats/fizika.png)
Physics, 25.03.2020 21:36
![Konu](/tpl/images/cats/es.png)
Spanish, 25.03.2020 21:36