Java exercise – family member

You need a loop and move the initialization of the variables outside of the loop.

int count = 0, count1 = 0, count2 = 0, count3 = 0, count4 = 0;
do {
    ...
} while(...);

Leave a Comment