//Loops(3) Solution Ex 3extra

#include <stdio.h>

void main()
{
	int x,total=0, bottom,top;
	printf("Enter bottom of range: ");
	scanf("%d", &bottom);
	printf("Enter top of range: ");
	scanf("%d", &top);

	for (x = bottom; x <= top; x++)
	{
		total = total + x;
	}
	printf("The sum of the numbers is %d", total);

}