4 dic 2013

javaapplication matrici 2

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

/**
 *
 * @author internet
 */
public class JavaApplication19 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int m[][]=new int[10][10];
        int a = 0,b=0;
        m[a][b]=100;
        for (int j=0; j<10 br="" j="">                {for (int i=0; i<10 br="" i="">                        {m[a][b]=m[a][b]-1;
        if(m[a][b]%2==1)
        System.out.print(" "+m[a][b]);         
        }
           System.out.println(); 
        }
    }
}

Nessun commento:

Posta un commento