progra doc x

15
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package matriz.filas; import java.util.Scanner; /** * * @author cristian Suarez */ public class MatrizFilas { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here

Upload: belen-gv

Post on 03-Sep-2015

228 views

Category:

Documents


0 download

DESCRIPTION

Programa

TRANSCRIPT

/*

* To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates

* and open the template in the editor.

*/

package matriz.filas;

import java.util.Scanner;

/**

*

* @author cristian Suarez

*/

public class MatrizFilas {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

// TODO code application logic here

Scanner GOD = new Scanner(System.in);

int nf, nc;

System.out.print("ingrese el numero de filas:");

nf=GOD.nextInt();

System.out.print("ingrese el numero de columnas:");

nc=GOD.nextInt();

int mat[][]= new int[nf][nc];

for(int p =0;p