Menu

[Solved]Java Program Need Know Solve Hand Using Computer Program Public Class Javaapplicationguess Q37109718

this is in java program, I need to know how can I solve this inhand with out using computer program.  

public class JavaApplicationGuess {
public static void main(String[] args) {
int i = 0;
int x = 0;
  
for (i =3; i > 1; i–) {
do {
x = x * 2 + 3;
System.out.println(x);
} while (x < 8);
x = x -1 + i;
System.out.println(i + ” ” + x);
}
}
}

my output doing in hand are

3

9

21 which is wrong

2 22 wrong

Expert Answer


Answer to this is in java program, I need to know how can I solve this in hand with out using computer program. public class JavaA… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *