| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 
 | public class saisie {
 
 
    public  int[][] saisie1(int n, int m) 
    /** Initialise par saisie une matrice de réels de n lignes et m colonnes
     * Précondition. n > 0, m > 0.
     */
    {
         int t[ ][ ], i, j ;
         //t = new double[n][m] ;
 
         for (i = 1 ; i < t.length ; i = i + 1 ) 
             for (j = 1 ; j <= t[0].length ; j = j + 1 ) 
         {
             System.out.println("valeur de la case " + (i+1) + " " + (j+1) + " ? ") ;
             t[i][j] =  Clavier.lireInt();
         }
         return t ;
    }
    public  void main (String args[])
    {
		int n=Integer.parseInt(args[0]);
		int m=Integer.parseInt(args[1]);
    	 saisie1( n,  m);
    } | 
Partager