fork download
  1. #include <stdio.h>
  2. #define NUM 5
  3.  
  4. int main(void)
  5. {
  6. int test[NUM] = {80,60,22,50,75} ;
  7. int j;
  8.  
  9. for(j=0; j<NUM; j++){
  10. printf("%d番目の人の点数は%dです。\n", j+1, test[j]);
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
1番目の人の点数は80です。
2番目の人の点数は60です。
3番目の人の点数は22です。
4番目の人の点数は50です。
5番目の人の点数は75です。