+ 1

Please Help me

What does % Mean Exmaple:7%(5 // 2)

30th Jan 2017, 8:56 PM
Leig Ju
Leig Ju - avatar
4 Answers
+ 2
% Operator in Modulus Operator. It typically Functions on integer values. This operator gives remainder. E. G. 4%2 = 0 5%2 = 1 etc
30th Jan 2017, 11:33 PM
Arpan Lunawat
Arpan Lunawat - avatar
+ 1
7 1 --- = 2 ----- 3 3 The output is how many left. In this example, there is 1 left. So, the output is 1
4th Feb 2017, 2:58 PM
Nathanael Tjandra
Nathanael Tjandra - avatar
0
it is the modulus operator. This way, it is to mean remainder of 7 by (5//2)
30th Jan 2017, 9:25 PM
Amaras A
Amaras A - avatar
0
% mean how many left if you divide the number
4th Feb 2017, 2:54 PM
Nathanael Tjandra
Nathanael Tjandra - avatar