|
@@ -13,7 +13,7 @@ import java.io.*;
|
|
import java.util.Scanner;
|
|
import java.util.Scanner;
|
|
|
|
|
|
class Average{
|
|
class Average{
|
|
-public static void main(String args[]) throws IOException {
|
|
|
|
|
|
+/*public static void main(String args[]) throws IOException {
|
|
Scanner in = new Scanner(System.in);
|
|
Scanner in = new Scanner(System.in);
|
|
int n;
|
|
int n;
|
|
double sum = 0.0;
|
|
double sum = 0.0;
|
|
@@ -24,5 +24,13 @@ public static void main(String args[]) throws IOException {
|
|
sum += t;
|
|
sum += t;
|
|
}
|
|
}
|
|
avg = sum / n;
|
|
avg = sum / n;
|
|
|
|
+ }*/
|
|
|
|
+
|
|
|
|
+public double averageMark(double[] marks){
|
|
|
|
+ double sum = 0.0;
|
|
|
|
+ for (int i = 0; i < marks.length; i++){
|
|
|
|
+ sum += marks[i];
|
|
}
|
|
}
|
|
|
|
+ return sum/marks.length;
|
|
|
|
+}
|
|
}
|
|
}
|