0

How is (1+3)**2=16 ??

9th Feb 2017, 12:33 PM
Rushini Wickramasooriya
Rushini Wickramasooriya - avatar
5 ответов
+ 4
first 1+3=4 then 4^2=16
9th Feb 2017, 12:36 PM
Cosme
Cosme - avatar
+ 2
In Python '**' operator is power operator, so: ( 1 + 3 ) to power of 2 == 16 ;)
9th Feb 2017, 12:52 PM
visph
visph - avatar
+ 2
It is 16.0, not 16!
9th Feb 2017, 1:11 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 1
@Ali Emir Kizil: '=16' was to be read in human language, where '16==16.0' ... else it's neither '16' nor '16.0' at output, it's a syntax error :P
9th Feb 2017, 1:15 PM
visph
visph - avatar
0
BODMAS Brackets,of,Divison,Multiplication,Addition,Subtraction That is the order in which you do calculations Brackets come first (1+3)=4 4**2 ** means square or multiple 4 two times 4x4=16
9th Feb 2017, 2:00 PM
Agaba Ivan
Agaba Ivan - avatar