Ok ao I have made a change and now my program seems to get stuck in a loop. It never increments to the next number like it is supposed to.
Code:
#include <stdio.h>
int main(void)
{
/*Declare Variables*/
int x,y;
char name [50];
/*Get users name*/
printf("Enter your name:");
scanf("%s", &name);
printf("\nThis program will accept 2 numbers from you and print all the numbers"
"between them on the screen.\n");
/*Get values for x and y from user*/
printf("Enter an your starting number:");
scanf("%d", &x);
printf("Enter your ending number:");
scanf("%d", &y);
/*Loop through numbers and print*/
printf("\n Thank you %s,\n", name);
while (x<=y)
printf("\t%d",x);
++x;
getchar(); /*wait for key stroke to exit*/
}