How many times the below loop will get executed? int input =20; while ( input ==20) \{ input++; \} infinite never once 2
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How many times the below loop will get executed? int input =20; while ( input ==20) \{ input++; \} infinite never once 2
How many times the below loop will get executed? int input =20; while ( input ==20) \{ input++; \} infinite never once 20 times QUESTION 2 What is the output of the program (assume there are no syntax and compile errors)? int i=5; int j=i; if (i==j&&j==5) if (il=5) System.out.println("i and j equal"); else System.out.println("i and j NOT EQUAL"); i and j equal Both the output i and j NOT EQUAL No output
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!