Solved

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

Question 21

Multiple Choice

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


A) 12
B) 10
C) 0
D) 1

Correct Answer:

verifed

Verified

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

Related Questions