0
How to calculate the output of following code?
Var x =1 for(var i=0; i<10; i++){ for(var j=0; j>=2; j++){ for(var k=0; i<5; k++){ x++ } } }
2 odpowiedzi
+ 2
Why do you have to calculate it?
Try to go through the loop in your head or on your paper step by step, like your computer would.
(There's no shortcut to understanding these things, you got to think them through.)
0
Nested loops.
K won't stop... it depends on I.
But fixed will be 10*3*5=150