I have the following code, but why doesn't the second while loop run? Any changes to make it run?
#include<stdio.h>
int main() {
    int a,b,c,d,e,f;
    while(scanf("%d,%d,%d",&a,&b,&c)==3){
        printf("ok\n");
    }
    while(scanf("%d,%d,%d",&d,&e,&f)==3){
        printf("OK\n");
    }
    return 0;
}
My input is
1,2,3
1,5,7,4,8,7
7,8,9,...
 
     
    