+ 3
what is difference between // and %, please explain with suitable example
3 ответов
0
/ gives you quotient in flot with remainder 0
// gives you quotient in only in integer
% gives you remainder.
4/2 : 2
4//2 : 2
4%2 : 0
5/2 : 2.5
5//2 : 2
5%2 : 1