int GetIdScore(long id[], float score[]) { int n; n = 0; while (1) { scanf("%d", &id[n]); if (id[n] == 0) break; scanf("%f", &score[n]); n++; if (n >= 60) break; } return n; }