This is far to easy for me to actually provide the loop for you. Read the above, it details (exhaustivly) what you need to do.
somevalue = num1
somevalue2 = num2
biggest = whateveris bigger, num1 or num2
smallest = whatever is smaller, num1 or num2
sum = 0, count = smallest
count < biggest
sum += count
**** it. Never mind. Everyone does everyone elses homework for them anyway. What's the point. No one wants to actually learn anything.