Try using two scanf statements.


...
printf("Input first number: ");
scanf("%d", &x);
printf("Input second number: ");
scanf("%d", &y);
...