0
Go
How the answer got 18 https://code.sololearn.com/cdewbyJabu3R/?ref=app
2 Answers
+ 2
i increases "3" each time in for loop
So,
i = 3;
i = 6;
i = 9;
Then "res+=i" calculates the sum of all "i" values
So,
res = 3+6+9 =18
0
Thank u
How the answer got 18 https://code.sololearn.com/cdewbyJabu3R/?ref=app