public class student {
public static void main(String[] args) {
int
studentInfo[][];
studentInfo = new int
[10][6];
System.out.println("학번 \t 국어 \t 영어 \t 수학 \t 총점 \t
평균");
for(int i=0; i<=9; i++){
System.out.print((i+1) +
"\t");
for(int j=1; j<4; j++){
studentInfo[i][j] = (1+(int)
(Math.random()*10))*10;
studentInfo[i][4] +=
studentInfo[i][j];
System.out.print(studentInfo[i][j] +
"\t");
}
studentInfo[i][5] =
studentInfo[i][4]/3;
System.out.print(studentInfo[i][4] +
"\t");
System.out.print(studentInfo[i][5] +
"\t");
System.out.println();
}
}
요거 도대체 뭘쓰고 왜쓴거예요??
솔직히 과제인대 이해가 잘안되요 부탁드립니다.
자네는 F일세
자네는 D-일세 물론 재수강은 안되네
F니까 청춘이다
한번만들 도와줍쇼 ㅠㅠ
랜덤함수와 배열을 잘 알고있는지 하는듯. System.out.println("학번 t 국어 t 영어 t 수학 t 총점 t 평균"); 이건그런데 이렇게쓰는게 아닌것같은데... t는 변수일텐데 뒤에 아무선언이 없나...
탭 문자를 쓴건데 게시판 필터링 때문에 백슬래시가 지워진 걸껄
배열은 아세요?