Homework Clinic

Science Clinic => Computer Science => Topic started by: dbose on May 22, 2019

Title: What is the value of donuts after the following statement executes?int donuts = 10;if (donuts != 10) ...
Post by: dbose on May 22, 2019
What is the value of donuts after the following statement executes?
int donuts = 10;
if (donuts != 10)
    donuts = 0;
else
    donuts += 2;

1
0
12
10
◦ None of these
Title: What is the value of donuts after the following statement executes?int donuts = 10;if (donuts != 10) ...
Post by: Qarqy on May 22, 2019
12
Title: Re: What is the value of donuts after the following statement executes?int donuts = 10;if (donuts !=
Post by: Destiny Beard on Feb 20, 2020
Thank you
Title: Re: What is the value of donuts after the following statement executes?int donuts = 10;if (donuts !=
Post by: Destiny Beard on Feb 20, 2020
Thank you!
Title: Re: What is the value of donuts after the following statement executes?int donuts = 10;if (donuts !=
Post by: Gilbert . on Mar 30, 2020
Thank you really helped me