The output is 21 because c is incremented by 3 until it surpasses 10 and the value of c is added to sum each time the loop runs.
I hope this helps!
8.2m questions
10.9m answers