fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i,bestScores[5];
  5.  
  6. for(i=0;i<5;i++)
  7. scanf("%d",&bestScores[i]);
  8.  
  9. for(i=0;i<5;i++)
  10. printf("bestScores[%d]=%d\t",i+1,bestScores[i]);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4540KB
stdin
78 87 91 95 97
stdout
bestScores[1]=78	bestScores[2]=87	bestScores[3]=91	bestScores[4]=95	bestScores[5]=97