How many times the below loop will get executed? int input =20; while ( input ==20) \{ input++; \} infinite never once 2

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

How Many Times The Below Loop Will Get Executed Int Input 20 While Input 20 Input Infinite Never Once 2 1
How Many Times The Below Loop Will Get Executed Int Input 20 While Input 20 Input Infinite Never Once 2 1 (39.44 KiB) Viewed 35 times
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!
Post Reply