Answer to Question #204260 in C++ for nazz

Question #204260

Identity and correct the errors in each of the following statements

1)answer = 2Y + 4(z*)2;


2)if(x=1);

printf("Equal to 1");

printf("End of if");

else

printf("Not Equal to 1");

printf("End of else");


3)x =1;

while (x<=5)

total =total + x;

x++;


1
Expert's answer
2021-06-08T17:27:19-0400

1) number = 2*Y + 4*z*2;


2)if(x=1)

  {

    printf("Equal to 1");

    printf("End of if");

  }

  else

  {

    printf("Not Equal to 1");

    printf("End of else");

  }


3) x=1;

while (x<=5)

  {

    total =total + x;

    x++;

  }


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog