pesudocode:
Code:
somevalue = num1
somevalue2 = num2
biggest = whateveris bigger, num1 or num2
smallest = whatever is smaller, num1 or num2
loop initialization:
sum = 0, count = smallest
count < biggest
count++
loop body:
sum += count
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.
[edit]
**** it. Never mind. Everyone does everyone elses homework for them anyway. What's the point. No one wants to actually learn anything.
[/edit]
Quzah.