0
Python
a=4 b=2 c=2 d=a*b**c**3//2 print(d) Please explain the mathematical logic behind this. I know it prints 512
5 Answers
+ 2
** is evaluated first, and from right to left; then */ is done.
a*(b**(c**3))//2
--> 512
+ 1
c ** 3 is 8.
b ** 8 is 256.
a * 256 is 1024.
1042 // 2 is 512.
You must have typed something wrong.
+ 1
haha the program came out right just trying to figure out how to calculate manually and thanks
0
did that and got some really high number đđđ
0
Pleasure. :)