인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

동휘김's profile image
동휘김

asked

Introduction to Java Programming Course (renewed version) - From beginner to developer employment!!

arrangement

배열예제 오류

Written on

·

280

0

System.out.printf("s% 점수 : \t%.2f\n", name[0], (double)score[0]);

System.out.printf("s% 점수 : \t%.2f\n", name[1], (double)score[1]);

System.out.printf("s% 점수 : \t%.2f\n", name[2], (double)score[2]);

System.out.printf("s% 점수 : \t%.2f\n", name[3], (double)score[3]);

System.out.printf("s% 점수 : \t%.2f\n", name[4], (double)score[4]);

 

 

이부분에서만 에러가 나오는데 왜그런가여..

 

이거없이 코드 실행하면 점수 입력 및 평균구해지는건 되는데 뭐가 문제인지 모르겠습니다..

 

java

Answer 1

0

s% --> %s로 바꿉니다

동휘김's profile image
동휘김

asked

Ask a question