When coding in java, what does this symbol ''%'' do | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
+ 1

When coding in java, what does this symbol ''%'' do

3rd Jul 2018, 4:07 PM
Efe Panama
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.
3rd Jul 2018, 4:10 PM
Andre Daniel
Andre Daniel - avatar
+ 2
Thanks
3rd Jul 2018, 4:11 PM
Efe Panama