This file contains hidden or 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 hidden or 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