21
Explanation:
The values of c that make it into the loop are 1, 4, 7.
The values that are added to sum are 3 higher, i.e., 4,7 and 10.
The sum of those is 21.
p.s. why did you not run the program yourself?
su