+ 3
Why is the output of print (int(2/2*2-2+2%2)) Memory limit exceeded?
print (int(2/2*2-2+2%2))
6 Answers
+ 7
I run your code, man.
It prints 0 each time I execute it.
+ 5
It does print 0 alright when I run it.
+ 5
2/2*2-2+2%2 = 1*2-2+2%2 = 2-2+2%2 = 0+0 = 0.
And, this is what we get on execution.
+ 3
I run it on sololearn app
+ 1
0 ...
0
0