Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 1
When coding in java, what does this symbol ''%'' do
2 odpowiedzi
+ 2
%is modulo, it returns the remainder of a calculation.
Doing
4%3 will give 1.
35%7 will give 0.
24%5 will give 4.
Hope you understand.
+ 2
Thanks