/*
Lauren Dukes
CPSC 1110 Example

This program is supposed to print out numbers in a range, but this
contains an error that causes an infinite loop.

Press Ctrl + C to break out of the infinite loop.
*/

#include <stdio.h>
int main(void){
	int begin, end;
	printf("Please enter the beginning of the range: ");
	scanf("%d",&begin);
	printf("Please enter the ending of the range: ");
	scanf("%d",&end);
	
	int i = begin;
	while (i <= end){
		printf("%d\n",i);
	}

	return 0;
}


