🏃♀️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Grade { | |
int e; //영어 성적을 위한 변수 | |
int m; //수학 성적을 위한 변수 | |
void output_grade() { //총점을 구하는 메소드 | |
System.out.println(e+m); | |
} | |
} | |
public class GradeOutput { | |
public static void main(String args[]) { | |
Grade g1, g2; //2명의 성적을 표현하는 객체 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sum = values.reduce(function(sum, value){ | |
return sum + value; | |
}, 0); | |
var avg = sum / data.length; |
OlderNewer