What does the following statement do If(donuts ordered > 5) {price =10;}
Expert Answer
If(donuts ordered > 5) {price =10;}
The above statement means if the number of donuts ordered is greater than 5, then the price of donut is 10.
What does the following statement do If(donuts ordered > 5) {price =10;}
The above statement means if the number of donuts ordered is greater than 5, then the price of donut is 10.