Question: What is the value of each output statement? Please write your a nsw e rs on the provided line. public class Evaluation { } public

What is the value of each output statement? Please write your a nsw e rs
on the provided line.
public class Evaluation {
}
public static void main(String arg[]){
int X=l0, i;
}
for (i=0; i<3; i++)
X= X-2;
System , o~t.println(i)~ //6._____
System.out.println(x); //7._____
int h=0;
do {
h= h+3;
} while (h<2');
System.out.~ r intln(h); //8._____
int k=2;
while (k <2){
k= k+3;
}
System.out.p~ihtln (k); //9._____

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!