0

Пояснить 7%(5//2)

пять делим на 2, затем 7 делим по модуль на 2,5?

19th Apr 2017, 1:49 PM
Grygoriy
Grygoriy - avatar
4 Respuestas
+ 25
// is floor division. It gives the nearest floor integer, like 3.5 should be considered as 3 5//2 = 2 7%(5//2) = 7%2 = 1
19th Apr 2017, 1:53 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 11
@Sophia, % is remainder. If you divide 25 by 4, the quotient is 6 but 1 remains, and that 1 is remainder. 25%4 is 1
29th May 2017, 6:04 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 3
I do not speak russian (or whatever language this is) but I think I can understand the question. // is an operator called floor division which retrieves the quotient of the division and not the exact result. Here are some examples: 9//3 = 3 16//7 = 2 64 // 5 = 12
19th Apr 2017, 1:53 PM
G4S
0
what is %
29th May 2017, 3:39 AM
Sophia Thitari
Sophia Thitari - avatar