Question: How to update a int variable to another int variable in side of while loop and if else? For example: int a = 10; int
How to update a int variable to another int variable in side of while loop and if else?
For example:
int a = 10;
int b = a;
int c = a - 1;
while( some code........) {
if( some code..........) {
some code............
if(b < c ) {
// how to update b to c
}
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
