Solved

What Is the Value of Donuts After the Following Statement \quad

Question 50

Multiple Choice

What is the value of donuts after the following statement executes?
int donuts = 10;
if (donuts != 10)
\quad donuts = 0;
else
\quad donuts += 2;


A) 12
B) 10
C) 0
D) 1
E) None of these

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions