+ 14

Why output is 11?

it is a challenge question but I don't understand why it is 11 https://code.sololearn.com/cIAA0Esv5aQ6/?ref=app

18th Aug 2018, 10:37 AM
Ebubekir TĂŒrker
Ebubekir TĂŒrker - avatar
3 Answers
+ 5
First step in loop x = 1*1, second step x = 1+2 and then multiplying x = 3*3, third step x = 9 + 2 => the loop stop 11 > 6.
18th Aug 2018, 10:43 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 9
yeah. It is my mistake:) I forgotten to add 2:) Thank you very much
18th Aug 2018, 10:44 AM
Ebubekir TĂŒrker
Ebubekir TĂŒrker - avatar
+ 3
You are welcome !
18th Aug 2018, 10:45 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar