if (a > 0) {
result = result + 1;
}
if (b > 0) {
result = result + 1;
}
if (c > 0) {
result = result + 1;
}
this is correct. can anyone explain to me how to read this?
question
Dyskutowane
Komentarze (2)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Mateusz Szymański
26 października 2022, 05:49
Teraz widzę Maćku, chyba za szybko robię te zadania:)
0
Maciej Olech Java Developer
25 października 2022, 11:52
You check that each of the entered digits is positive. If so, you increase the result by 1.
0