What is the value of x after the following statements?
double x;
x = 0;
x += 3.0 * 4.0;
x -= 2.0;
a. 22.0
b. 12.0
c. 10.0
d. 14.0
c. 10.0
Computer Science & Information Technology
double x;
x = 0;
x += 3.0 * 4.0;
x -= 2.0;
a. 22.0
b. 12.0
c. 10.0
d. 14.0
c. 10.0