What is the output? int x = 1, y = 7, z = 5; for(int i=0;i<2;i++) {

profileadelenoinwinderland
 (Not rated)
 (Not rated)
Chat

 

what is the output?

int x = 1, y = 7, z = 5;

for(int i=0;i<2;i++)

{

                        if (x > 0)

{

                                    if (y < 5)

{

                                                System.out.println("message one");

                                    }

                                    else

{

                                                System.out.println("message two");

                                    }

                        }

                        else if (z > 6)

{

                                    System.out.println("message three");

                        }

                        else

{

                                    System.out.println("message four");

                        }

}

System.out.println("message five");

    • 7 years ago
    the answer
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      Ifyouhaveanydoubts.docx