0
Salida de codigo/output code
print(1+2+3+4%5) #because is it print 10? #Âżporque se imprime 10 en el resultado?
3 Answers
+ 1
Hola Javi,
como se dice "operator precedence" en Espanol?
ÂżEs "precedencia del operadores"?
The modulo operator % has a higher rank than the plus signs.
4%5 is evaluated first and gives 4. The rest is just a simple addition from left to right.
+ 1
thanks klaus in spanish "operador precedente" = "prioridad de operador" or "% tiene prioridad"
- 1
10