If the first number is larger than the second, swap them.
Also, please don't respond to old threads. If you want to bring up an old topic again, open a new thread and put in a link to the old one.
This is a discussion on Sum of the numbers between two integers within the C++ Programming forums, part of the General Programming Boards category; If the first number is larger than the second, swap them. Also, please don't respond to old threads. If you ...
If the first number is larger than the second, swap them.
Also, please don't respond to old threads. If you want to bring up an old topic again, open a new thread and put in a link to the old one.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
If you can solve a simple problem like this: Problem 1 - Project Euler You will know how to do this homework. I recommend spending more time on PE.