Question: Given the following code: int pug = 1 0 int corgi = 2 ; while ( corgi pug ) loop 1 3 . pug -

Given the following code:
int pug =10
int corgi =2;
while(corgi pug) loop 1
3. pug -= corgi;
System.out.println(pug); // question 2
for(int i=10;i>0;i-=3 loop 2
3
System.out.println("It must be a hardware problem.");
How many times does loop 1 execute? [first]
What is printed from the line marked question 2?
How many times does loop 2 execute? [third]
 Given the following code: int pug =10 int corgi =2; while(corgi

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!