vnevermore

Askhsh 2

Feb 3rd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. public class Askhsh
  2. {
  3.     public static void main(String[] args)
  4.     {
  5.         int[][] A = new int[3][6];
  6.         int sum = 0;
  7.        
  8.         for(int i=0;i<3;i++)
  9.         {
  10.             for(int y=0;y<6;y++)
  11.             {
  12.                 A[i][y] = i+y;
  13.                 sum+=A[i][y];
  14.                 System.out.print(A[i][y] +"  ");
  15.             }
  16.             System.out.println();
  17.         }
  18.         System.out.println("To Mo einai: " + (double) sum/18);
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment