public class two_dimentional_array {
public static void main(String[] args) {
int gradearray [][] = new int[][] { { 60,61,70,98,60,69,69,69,67,69,55,69 },
{ 95,96,94,97,95,95,96,90,97,85,82,94 },
{ 50,54,51,57,50,55,52,55,56,53,65,62 },
{ 60,64,61,61,48,63,62,64,69,69,68,65 },
{ 60,64,61,64,50,65,55,68,57,58,61,98 },
{ 75,63,64,61,63,66,61,62,64,62,65,48 },
{ 61,63,62,58,60,98,59,61,65,55,67,65 },
{ 61,55,65,50,65,55,65,61,58,65,58,59 },
{ 65,61,94,61,65,64,62,65,55,58,59,61 },
{ 61,68,64,65,64,68,65,71,61,59,64,60 },
{ 60,60,64,60,63,61,60,62,65,60,69,60 },
{ 61,69,65,65,59,64,60,67,68,69,68,65 },
{ 61,64,65,63,66,65,61,65,59,61,64,60 },
{ 58,63,62,59,62,61,60,65,60,65,61,69 },
{ 61,62,65,67,61,66,67,64,67,61,67,68 },
{ 58,55,60,60,65,60,67,69,61,65,64,63 },
{ 60,69,68,68,67,60,60,69,59,60,58,58 },
{ 60,62,60,63,68,64,61,65,68,64,65,68 },
{ 64,62,65,64,59,60,58,61,65,59,58,62 },
{ 59,59,68,58,62,62,60,63,64,59,66,65 },
{ 69,62,65,65,68,64,59,63,64,62,55,55 },
{ 61,67,69,64,60,59,91,62,69,67,57,69 },
{ 58,68,65,66,60,61,62,61,62,65,69,69 },
{ 65,61,62,57,69,61,64,68,57,65,48,69 },
{ 62,58,91,59,60,61,65,57,67,62,69,67 },
{ 67,67,67,61,59,68,59,57,67,67,60,61 },
{ 67,60,62,58,65,55,67,55,60,61,63,69 },
{ 68,61,69,61,69,61,59,68,68,58,93,59 },
{ 62,67,68,60,62,58,61,63,61,69,69,61 },
{ 67,89,61,81,81,65,61,60,67,65,58,61 }};
int largest=0;
int smallest=9999;
int average=0;
int countermark=0;
for (int row = 0; row< gradearray.length; row++)
for (int column = 0; column< array1.length; row++)
System.out.print(""+ gradearray[row][column]);
{
System.out.println("");
}
{
for (int column = 0; column < gradearray[row].length; column++)
System.out.printf("%d", gradearray[row][column]);
if (gradearray > largest)
largest = gradearray;
if (gradearray < smallest)
smallest = gradearray;
if (gradearray[][] >70)
countermark= countermark +1;
}
System.out.printf("The largest number: %d\n", largest);
System.out.printf("The smallest number: %d\n", smallest);
System.out.printf("Average marks of : %d\n", average);
System.out.printf("more than 70: %d\n", countermark);
// TODO code application logic here
}
}