I'm trying to scan 4 numbers without pressing enter (I want it to end the scan when it sees there are 4 numbers). I'm using the method:
printf("Enter 4 Numbers(with space):\n");
scanf("%d %d %d %d" , &guess1 , &guess2 , &guess3 , &guess4);
but it requires spaces between the numbers and pressing enter at the end. So how do I make it to receive for example: 1234 (num1 = 1 , num2 = 2 and so on) and end the receiving without pressing enter.