int a,b;
while (scanf("%d",&a) != EOF){
printf("%d ",a);
}
printf("\n");
printf("Pls enter value b\n");
scanf("%d",&b);
printf("%d",b);
return 0;
When I type and then use command + D to jump out of the while loop, I cannot enter it again at this time, resulting in the value of b being random.