I was wondering how I would go about making a console app that outputs the sum of all the numbers between the 2 inputted integers(Starting/Stopping number) - with a simple loop?
if a & b are the inputted numbers:
int sum = 0;
for (int i = a; i <= b; i++) sum += i;
Edit: You should know how to do that easily, btw. :P