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!
5.2m questions
6.7m answers