mercredi 8 septembre 2021

What is printed by the following piece of code? [closed]

int a = 10;
int b = 30;
if (a * 2 < b) {
    a = a * 3;
}
if (b < a) {
    b++;
} else {
    a--;
}
System.out.println(a + " " + b);

Aucun commentaire:

Enregistrer un commentaire