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