>>-2**2
>>
>>what the answer... I lost my bet with my secondary schoolgirl daughter... :(
>
>There are some implied parenthesis in the expression and the result depends on where they are.
>
>Does the expression mean -(2**2) or (-2)**2?
If there isn't any parathesis you should do 2*2 and after put - .
if that would (-2)**2 than result would be +4.
I just asked software developer friends at our firm and they failed too... That's so funny... Hehe....
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement