I'm completely new to C programming, and programming in general, and I just have a quick question.

If I am trying to find the sum of the integers from n to 2*n (ex : if n = = 5, then sum = 5 + 6 + 7 + 8 + 10) how would I write that?

Thanks for the help guys!