I'm new to c, and I'm not sure how to word this question. But for example using this code:
#include <stdio.h>
int main()
{
int x,y,z;
printf("Enter 2 numbers: ");
scanf("%d %d", &x, &y);
printf("Test: ");
scanf("%d",&z);
printf("x:%d y:%d z:%d\n",x,y,z);
return 0;
}
If the user inputs "1 2 3", it would set x=1, y=2 and z=3. I was wondering if you could set x=1 and y=2 and ignore 3, then the user can input another value and not use the 3 given before.