What is the value storedin the variable mystery after each


Assume that you have a program that contains the following three lines of code. What is the value storedin the variable mystery after each line in the following code segment (You should have an answer like a)mystery has the value ...b) mystery now has the value ...)?

/*a)*/ int mystery = 5;
/*b)*/ mystery = mystery - mystery / 2;
/*c)*/ mystery = mystery + 1;

I don't understand how to do this question.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: What is the value storedin the variable mystery after each
Reference No:- TGS02396858

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)