Question: Which statement is true about the following code: if ( shields < = 0 && armor < = 0 ) { do this } If

Which statement is true about the following code:
if(shields <=0 && armor <=0)
{ do this}
If shields are at 0 but armor is at 20 this condition would be true
If shields are at 20 but armor is at 0 this condition would be true
Only If shields are at 0 or less and armor is at 0 or less would this condition would be true
This code would never have a condition as true

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!