Well here's what I was going to turn in, thanks for all the help btw. If there are any suggestions in regards to standards or some style points I might miss, please go ahead and say what it is.
// This program asks the user for two positive, whole numbers and then prints a
list of prime numbers between the user entered range of numbers.
int i, j, A, B, isPrime, lowernumber, highernumber;
printf("Enter the first of two positive, whole numbers: ");
scanf(" %d", &A);
printf("Enter the second of two positive, whole numbers: ");
scanf(" %d", &B);
else if (B<A)
while (0>A || 0>B) // If user enters negative number, input is invalid.
printf("One of your numbers is negative, invalid input.\n");
for(i = 2 ; i <= (highernumber - lowernumber) ; i++) //high-low=range
isPrime = 1;
for(j = 2 ; j <= i ; j++)
if( i == j)
else if( i % j == 0)
isPrime = 0;
if(isPrime) //If number is prime, prints the prime number
printf("%d, ", i);
works perfect btw