Achsooo, das mit der nächstkleineren ganzen Zahl leuchtet ein!
Vielen, vielen Dank für die Antwort!!!
Die Suche ergab 2 Treffer
- Mittwoch 21. Oktober 2020, 11:49
- Forum: Allgemeine Fragen
- Thema: Verständnissproblem bei `%`
- Antworten: 2
- Zugriffe: 303
- Mittwoch 21. Oktober 2020, 09:26
- Forum: Allgemeine Fragen
- Thema: Verständnissproblem bei `%`
- Antworten: 2
- Zugriffe: 303
Verständnissproblem bei `%`
Bitte nicht verurteilen, ich weiß, dass es eher eine dumme Frage ist... Ich verstehe wie es geht, aber nicht warum das rauskommt, was rauskommt.
print (-1%24)
Warum kommt 23 dabei raus?
24 ist doch 0 Mal in - 1 enthalten, also kommt doch 24 raus?
Sorry! Hoffe trotzdem auf ne Antwort!
Liebe Grüße!
print (-1%24)
Warum kommt 23 dabei raus?
24 ist doch 0 Mal in - 1 enthalten, also kommt doch 24 raus?
Sorry! Hoffe trotzdem auf ne Antwort!
Liebe Grüße!