5 feb 2014

Matrici

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

/**
 *
 * @author USER
 */
public class JavaApplication1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int v[][]=new int [50][50];
        for (int m = 0; m<50 data-blogger-escaped-br="" data-blogger-escaped-m="">        {
           
            for (int n=0; n<50 data-blogger-escaped-br="" data-blogger-escaped-n="">                    {
                        v[m][n]= (int) (Math.random()*2);
                        System.out.println(v[m][n]);
                    }
        }
       
    }
}
   

Nessun commento:

Posta un commento