Assume that isIsosceles is a boolean variable, and that the variables isoCount,triangleCount, and polygonCount have all been initialized. Write a statement that adds 1 to each of these count variables (isoCount,triangleCount, and polygonCount)if isIsosceles is true.

Respuesta :

Answer:

if( isIsosceles==true)

{

isoCount=isoCount+1;

triangleCount=triangleCount+1;

polygonCount=polygonCount+1;

}

Explanation:

According to question isIsosceles is a boolean variable so we check the condition of isIsosceles  variable  . if(isIsosceles==true) then it will executed the statement inside the if block  that means it  will increase the variable  isoCount,triangleCount, and polygonCount by 1  

i.e isoCount=isoCount+1;,

triangleCount=triangleCount+1;

polygonCount=polygonCount+1;