+ 3
How it is 12?
4 Respuestas
+ 6
Its correct.
i value is initially 0.
Hence condition holds true now i value is 0 × 0 = 0.
Now i is incremented by 3 which also satisfy condition.
Hence now i = 3 × 3 = 9.
Again i value is incremented by 3 which dont satisfy condition.
Now value of i is 12 and will be printed to screen.
Hope this helps ☺️☺️.
+ 5
:)
+ 4
thanks
0
Follow me