Kommentare (2)
  • Beliebt
  • Neu
  • Alt
Du musst angemeldet sein, um einen Kommentar schreiben zu können
Lukasz
Level 7 , Trzebiel, Poland
4 Mai 2020, 17:20
cze, małe pytanko, co jest nie tak przed while daje int i = 0 i warunek: error: bad operand types for binary operator '&&' while(i < 10 && i++) { ^ first type: boolean second type: int
Damian Siadaczka
Level 20 , Warszawa, Poland
4 Mai 2020, 19:16
Trudno mi się odnieść, wstawiłeś komentarz pod moim profilem, komunikat test taki ponieważ po prawej stronie && wartość nie jest binarna i<10 da nam true albo false, ale i++ - już nie, zamiast tego zwróci "i" a następnie podniesie tą wartość o jeden, A co chciałeś osiągnąć?