logo

Crowdly

public static int getSum() { int sum = 0; for (int a = 50; a >= 0...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

public static int getSum() {

int sum = 0;

for (int a = 50; a >= 0; a--) {

if (a % 10 == 0) {

sum += 1;

}

if (a % 5 == 0) {

sum -= 1;

}

}

return sum;

}

Mida tagastaks funktsioon välja kutsudes?

0%
More questions like this

Want instant access to all verified answers on moodle.taltech.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!